FirstDEV blog

⚞ Well, Blog First!

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

Refinements in Ruby — Scoped Monkey Patching Without the Footguns

Monkey patching in Ruby has a reputation — usually deserved — for causing exactly the kind of spooky action-at-a-distance bugs that make senior engineers twitch. Open a class anywhere in the codebase, add

Rajan Bhattarai Rajan Bhattarai 9 min read
Rails

Solid Queue — Background Jobs in Rails 8 Without Redis

For years, adding background jobs to a Rails application meant adding Redis. Sidekiq is excellent, but it pulls in a dependency that needs its own infrastructure, its own monitoring, its own operational overhead.

Rajan Bhattarai Rajan Bhattarai 8 min read
Developer tips

How to Get Your First 100 Newsletter Subscribers as a Developer

A newsletter is the most underrated asset a developer can build. No algorithm, no platform risk, no fighting for attention in someone else’s feed. Just you, your readers, and a direct line. The

Rajan Bhattarai Rajan Bhattarai 10 min read
Ruby 3

Object Freezing and Immutability in Ruby — When to Lock Things Down

Mutability is the default in Ruby — most objects can be changed after creation, which is convenient right up until you have a hash shared between two parts of a system and one

Rajan Bhattarai Rajan Bhattarai 11 min read
Rails

ActiveRecord Validations — Custom Validators and the Patterns Worth Knowing

Rails ships with a solid set of built-in validations that cover the common cases. Most applications, though, quickly accumulate requirements that built-ins can’t express cleanly — business rules about date ranges, format constraints

Rajan Bhattarai Rajan Bhattarai 9 min read
Developer tips

Developer Mentorship — How to Give It, How to Get It, and Why It Compounds

Most developers improve in relative isolation — working through problems alone, picking up patterns from code they read, slowly accumulating judgment from things that went wrong. It works, but it’s slow. Mentorship compresses

Rajan Bhattarai Rajan Bhattarai 11 min read
Ruby 3

Symbol#to_proc and Callable Objects in Ruby — Making Code Do the Talking

Ruby has several ways to represent callable behavior — blocks, procs, lambdas, and method references — and the syntactic sugar that connects them is one of the language’s quieter strengths. The &:symbol shorthand

Rajan Bhattarai Rajan Bhattarai 9 min read
Rails

Polymorphic Associations in ActiveRecord — One Model, Many Parents

Some models naturally belong to many different types of things. Comments belong to posts, but also to videos, to products, to events. Images attach to users, articles, and listings. Tagging works across everything.

Rajan Bhattarai Rajan Bhattarai 9 min read
Developer tips

Writing Technical Documentation Developers Will Actually Read

Most technical documentation gets written once and ignored forever. Not because developers don’t want documentation — anyone who’s spent an afternoon reverse-engineering an undocumented API knows how much it matters — but because

Rajan Bhattarai Rajan Bhattarai 11 min read
« Newer Posts Page 4 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! 🚀