FirstDEV blog

⚞ Well, Blog First!

  • Home
  • Ruby
  • Ruby On Rails
  • Tips
  • Solutions
  • About
Subscribe
Developer tips

Speaking at Your First Tech Meetup — A Practical Guide for Developers

Most developers who could benefit from speaking at meetups never do. Not because they lack something to say, but because the idea of getting on stage feels much larger than it actually is.

Rajan Bhattarai Rajan Bhattarai 11 min read
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
Ruby 3

Enumerator and Lazy Evaluation in Ruby — Processing Large Collections Without Blowing Memory

Most Ruby developers reach for map, select, and each without thinking twice — and for small arrays, that’s totally fine. But the moment you’re working with large datasets, external files, API paginated responses,

Rajan Bhattarai Rajan Bhattarai 12 min read
Rails

Action Cable Channels and Broadcasting — A Practical Setup Guide

Most Rails apps start request-response and stay that way. Then a product requirement lands — live notifications, a chat feature, a dashboard that updates without refreshing — and suddenly you’re looking at WebSockets.

Rajan Bhattarai Rajan Bhattarai 10 min read
Developer tips

Git Workflow Best Practices — The Habits That Keep Teams Moving Fast

Git is the one tool every developer on a team shares, which makes how you use it either a productivity multiplier or a constant source of friction. The mechanics are easy to learn;

Rajan Bhattarai Rajan Bhattarai 11 min read
Ruby 3

Regular Expressions in Ruby — A Practical Guide That Skips the Theory

Regular expressions have a reputation for being write-only code — you craft them with intense focus, they work, and three months later neither you nor anyone else can read them. That reputation is

Rajan Bhattarai Rajan Bhattarai 8 min read
Rails

ActiveRecord Scopes and Query Objects — Keeping Your Queries Organized

Queries scattered across controllers, models, and background jobs are one of the most common maintainability problems in Rails apps. A where clause written inline in a controller is invisible to the next developer

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