Skip to content

Archives

All the articles I've archived.

2025 1
August 1
2024 2
January 2
2023 1
February 1
2022 1
April 1
  • WeakMaps in JavaScript

    Updated:

    WeakMaps allow objects to be used as keys, offering memory efficiency and encapsulation—ideal for private data storage and avoiding memory leaks.

2021 7
November 2
  • Module Functions in Ruby: module_function vs extend self

    Updated:

    In Ruby, modules can provide both namespacing and mixin functionality. Learn how to define module-level functions using module_function and extend self, and the differences between them.

  • Magic Comments in Ruby

    Updated:

    Ruby supports file-level 'magic comments' that instruct the interpreter—most famously for source encoding, but also for freezing strings, shareable constants, and indentation warnings.

June 1
  • Working with HTTP Headers in Rails

    Updated:

    Learn how to safely extract external HTTP headers in Rails while filtering out internal Rack and Rails environment variables.

February 2
January 2
  • Creating Python Virtual Environments

    Updated:

    Learn how to create and use Python virtual environments with venv to isolate dependencies and manage multiple projects cleanly.

  • Fixing Homebrew & Zsh Issues After macOS Upgrades

    Updated:

    Upgrading macOS often breaks command-line setups. Here’s how I fixed issues with Homebrew, Zsh, and oh-my-zsh during the Big Sur upgrade—steps still useful for modern macOS versions.

2020 3
December 1
  • How to Use Forked NPM Dependencies

    Updated:

    When an NPM package is missing a feature or has a blocking bug, point your project at a maintained fork via a Git URL—plus modern alternatives like patch-package and overrides.

July 2
2019 2
December 2
  • Understanding Linked Lists (DSA Series)

    Updated:

    A practical introduction to singly and doubly linked lists—what they are, when to use them, core operations, time/space trade-offs, and modern relevance.

  • Working with Files in Ruby

    Updated:

    Learn the basics of working with files in Ruby: opening, reading, writing, streaming, and querying file objects efficiently.

2011 8
April 1
  • Retrieving a Random Row in ActiveRecord

    Updated:

    Learn different ways to fetch a random row in ActiveRecord, their trade-offs in PostgreSQL and MySQL, and which method to prefer for performance.

March 4
February 2
January 1