FirstDEV blog

⚞ Well, Blog First!

  • Home
  • Ruby
  • Ruby On Rails
  • Tips
  • Solutions
  • About
Subscribe
Ruby 3

method_missing and respond_to_missing? — Ruby Metaprogramming That's Actually Useful

Metaprogramming has a reputation for being either magical or dangerous, depending on who you ask. Both reactions are earned. Ruby’s method_missing hook lets you intercept calls to methods that don’t exist and handle

Rajan Bhattarai Rajan Bhattarai 8 min read
Rails

Service Objects in Rails — Keeping Controllers Thin Without Losing Your Mind

Fat models, skinny controllers was the mantra for years. Then models got fat and we realized that was wrong too. Business logic crammed into ActiveRecord models means models responsible for database persistence, validations,

Rajan Bhattarai Rajan Bhattarai 8 min read
Developer tips

Why Every Developer Should Have a Personal Blog (And How to Actually Start)

The number of developers who should have a personal blog and don’t is staggering. Not because they have nothing worth saying — most of them have been solving interesting problems for years —

Rajan Bhattarai Rajan Bhattarai 10 min read
Ruby 3

tap, then, and yield_self — Ruby's Method Chaining Toolkit

Ruby has three methods that look similar on the surface but solve distinct problems in method chains: tap, then (aliased as yield_self), and itself. Once you understand what each one is actually for,

Rajan Bhattarai Rajan Bhattarai 8 min read
Rails

Turbo Frames — Partial Page Updates in Rails Without Writing JavaScript

Turbo Streams handle real-time updates pushed from the server. Turbo Frames handle a different problem: replacing sections of a page in response to user interaction — clicking a link, submitting a form —

Rajan Bhattarai Rajan Bhattarai 8 min read
Developer tips

Code Review Etiquette — How to Give and Receive Feedback That Actually Helps

Code review is one of the most consequential daily interactions in software development, and it’s rarely taught explicitly. Most developers learn by osmosis — they absorb the norms of whatever team they first

Rajan Bhattarai Rajan Bhattarai 11 min read
Ruby 3

Enumerable#lazy — Processing Large Collections Without Loading Them All

Ruby’s Enumerable is one of the language’s best features — map, select, reject, reduce, and dozens of other methods that make working with collections feel natural. But every one of those methods is

Rajan Bhattarai Rajan Bhattarai 8 min read
Rails

Rails Credentials — Managing Secrets Without Leaking Them

Every Rails app has secrets — API keys, database passwords, third-party service tokens. The bad old pattern was storing these in environment variables set manually on each server, or worse, hardcoded in config

Rajan Bhattarai Rajan Bhattarai 7 min read
Developer tips

LinkedIn for Developers — Building a Profile That Works Without Feeling Fake

Most developers have a complicated relationship with LinkedIn. They filled out a profile years ago, accepted a few connection requests, and now get occasional recruiter messages for jobs they’re not interested in while

Rajan Bhattarai Rajan Bhattarai 10 min read
« Newer Posts Page 7 of 10 Older Posts »
FirstDEV blog © 2026
Proudly published with Jekyll & using Jasper2
Latest Posts Twitter
FirstDEV blog

Check viewARU - Brand Newsletter!

Newsletter to DEVs by DEVs - boost your Personal Brand & career! 🚀