david.dev
AI × Ruby on Rails
Latest Posts
Rails 8 Eager Loading: N+1 Query Fixes
Eliminate N+1 queries with includes, preload, and eager_load to make Rails 8 apps fast and database-friendly.
Rails 8 View Components Deep Dive
Build reusable, testable UI components in Rails 8 with ViewComponent—cleaner than partials, faster than helpers.
Rails 8 Delegated Types Explained
Delegated types offer a cleaner alternative to STI when your models share behavior but differ in attributes.
Rails 8 Callbacks: Patterns and Pitfalls
Master Active Record callbacks without creating maintenance nightmares. Learn when to use them and when to run.
Rails 8 STI: When and How to Use It
Single Table Inheritance can simplify your models or create nightmares. Learn the patterns that actually work.
Rails 8 File Uploads with Active Storage
Master file uploads in Rails 8 using Active Storage with direct uploads, variants, and MySQL-backed metadata.
My Recommended Stack
Ruby on Rails
The web framework that makes development enjoyable and productive
Hotwire
HTML over the wire - Turbo + Stimulus for reactive UIs without heavy JavaScript
MySQL
Battle-tested relational database with excellent Rails support
Cursor
AI-powered code editor that understands your entire codebase
Claude Code
AI coding assistant for the terminal - perfect for Rails development
Deplo.io
Swiss PaaS - deploy Rails apps with git push, 100% Swiss hosted