Archives
All the articles I've archived.
-
Migrating from Gridsome to Astro: A Developer Journey
My experience migrating my personal blog from Gridsome to Astro, including the challenges, benefits, and lessons learned along the way.
-
The Future of Web Performance: Beyond Core Web Vitals
Exploring emerging performance metrics and optimization strategies that will shape the next generation of web applications.
-
Continuous Learning in Tech: Staying Relevant in a Fast-Paced Industry
Strategies and resources for developers to stay current with rapidly evolving technologies and maintain career growth in the tech industry.
-
Formatting ActiveSupport::Duration Objects in Rails
Updated:Learn how to format ActiveSupport::Duration objects into concise, human-readable strings with locale support using the duration_in_words gem.
-
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.
-
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.
-
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.
-
Git: Revert an Updated File
How to remove an updated file from a pull request without deleting the file itself — ensuring your changeset stays clean and focused.
-
Managing Multiple SSH Keys in Git and SSH Config
Updated:Learn how to manage multiple SSH keys for personal, work, and client projects using ssh-agent, ssh config, and gitconfig conditionals.
-
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.
-
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.
-
Keeping Array Elements Unique in Ruby
Updated:Explore different ways to keep arrays unique in Ruby—using `uniq`, `uniq!`, and the `|` operator.
-
Dynamic Full Page Background Images in Rails
Updated:Learn how to set and randomize full-page background images in a Rails app using CSS3 and simple view helpers.
-
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.
-
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.
-
Recovering a MySQL Root Password
Updated:Forgetting a database password isn’t the end of the world. Here’s how to reset or recover the MySQL root password, with notes for modern MySQL versions.
-
Highlighting Current Link in Rails Navigation
Updated:A look back at techniques for highlighting the active link in Rails navigation, with modern alternatives using current_page? and Stimulus.
-
Centering a Fixed-Sized Element with CSS
Updated:Learn a classic CSS trick to center a fixed-width or fixed-height element using absolute positioning and negative margins.
-
Re-initializing Table Sequences in PostgreSQL
Updated:Learn how to reset and reinitialize table sequences in PostgreSQL safely, whether preserving existing data or starting fresh.
-
Loading CSV Data in Rails: Then vs Now
Updated:A look back at how Rails 2.x apps loaded CSV data into models, and how modern Rails apps can do it more efficiently today.
-
Adding a Close Button to Flash Messages in Rails
Updated:Learn how to add a simple close button to dismiss Rails flash messages and a modern Rails 7+ Stimulus approach.
-
Connecting to Multiple Databases in a Rails App
Updated:Learn how to connect a Rails app to multiple databases using establish_connection, with context on modern Rails features for handling multi-DB setups.