FirstDEV blog

⚞ Well, Blog First!

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

How to Actually Ship Your Side Project — The Developer's Guide to Finishing

The developer graveyard is full of side projects. Half-built apps, promising ideas that reached MVP and no further, abandoned repos with commits from two years ago. Starting is easy — the problem is

Rajan Bhattarai Rajan Bhattarai 10 min read
Ruby 3

Exception Handling in Ruby — rescue, ensure, retry, and raise Done Right

Exception handling is one of those topics that feels simple until you hit a subtle bug caused by rescuing too broadly, retrying without a limit, or swallowing errors that should surface. Ruby’s exception

Rajan Bhattarai Rajan Bhattarai 8 min read
Rails

Rails Caching Strategies — From Low-Level Cache to Russian Doll

Caching is how Rails apps go from “works fine with 10 users” to “works fine with 10,000 users” without rewriting everything. Rails ships a complete caching toolkit — low-level key-value cache, fragment caching,

Rajan Bhattarai Rajan Bhattarai 9 min read
Developer tips

Deep Work for Developers — Getting Real Hours Back in a World of Interruptions

Software development is cognitively one of the most demanding professions there is. Holding a complex system in working memory, tracing execution paths, spotting the subtle interaction between two pieces of code — these

Rajan Bhattarai Rajan Bhattarai 11 min read
Ruby 3

Hash.new With Default Values — Ruby's Underused Shortcut

Most Ruby developers initialize hashes with {} and manually check for missing keys before updating them. It works, but Ruby’s Hash.new offers a more expressive alternative: hashes that return a default value for

Rajan Bhattarai Rajan Bhattarai 8 min read
Rails

ActiveRecord Callbacks — When to Use Them and When to Stop

ActiveRecord callbacks are one of Rails’s most convenient features and one of its most misused. before_save, after_create, after_commit — they let you hook into the model lifecycle and run code automatically, which sounds

Rajan Bhattarai Rajan Bhattarai 8 min read
Developer tips

Salary Negotiation for Developers — What Most People Get Wrong

Most developers are bad at negotiating their salary. Not because they lack the skills — the same analytical thinking that makes someone good at debugging complex systems is exactly what’s needed here. They’re

Rajan Bhattarai Rajan Bhattarai 10 min read
Ruby 3

each_with_object vs reduce — Choosing the Right Ruby Aggregator

Ruby gives you multiple ways to aggregate a collection into a single result: reduce (aliased as inject), each_with_object, and occasionally tally, sum, or group_by for specific cases. Developers tend to reach for reduce

Rajan Bhattarai Rajan Bhattarai 9 min read
Rails

Rails API Mode — Building JSON APIs Without the Full Stack Overhead

Rails started as a framework for server-rendered HTML applications, and it still excels there. But a significant portion of Rails apps today are pure JSON APIs — backends for mobile apps, frontend JavaScript

Rajan Bhattarai Rajan Bhattarai 8 min read
Developer tips

Managing Technical Debt — The Developer's Honest Guide

Technical debt is one of those concepts that everyone agrees is real and almost nobody manages well. It accumulates quietly — a rushed feature here, a patch there, a test suite that’s more

Rajan Bhattarai Rajan Bhattarai 10 min read
Ruby 3

include, extend, and prepend — Ruby's Three Ways to Use Modules

Ruby modules are one of the language’s most flexible tools — they handle namespacing, mixins, and code sharing without the rigidity of inheritance. But include, extend, and prepend are three different operations that

Rajan Bhattarai Rajan Bhattarai 8 min read
Rails

Action Cable — Real-Time Features in Rails with WebSockets

Turbo Streams handle real-time updates elegantly for most cases — server broadcasts a change, the page updates. But Turbo Streams build on top of Action Cable, and sometimes you need to work at

Rajan Bhattarai Rajan Bhattarai 8 min read
Developer tips

Networking for Introverted Developers — Without Pretending to Be Someone You're Not

The word “networking” was invented to make introverts miserable. It conjures images of badge-scanning at conference happy hours, small talk with strangers over lukewarm beer, and handing out business cards to people you’ll

Rajan Bhattarai Rajan Bhattarai 10 min read
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
« 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! 🚀