FirstDEV blog

⚞ Well, Blog First!

  • Home
  • Ruby
  • Ruby On Rails
  • Tips
  • Solutions
  • About
Subscribe
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
Ruby 3

Ruby's Comparable Module — Custom Ordering That Just Works

You’ve probably used sort, min, max, and between? on numbers and strings without thinking much about them. They work because those classes already implement comparison logic Ruby’s core can use. But the moment

Rajan Bhattarai Rajan Bhattarai 7 min read
Rails

Action Mailer — Sending Emails in Rails Without the Headaches

Email is one of those features every app eventually needs and nobody particularly wants to build. Welcome emails, password resets, weekly digests, transactional notifications — the list grows quickly once your app is

Rajan Bhattarai Rajan Bhattarai 7 min read
Developer tips

How to Get Your First Tech Conference Talk Accepted

Speaking at a tech conference is one of those career milestones that seems impossibly far away until someone tells you the actual submission process, at which point it becomes merely uncomfortable. The secret

Rajan Bhattarai Rajan Bhattarai 9 min read
Ruby 3

Ractor — True Parallelism in Ruby 3 Without the Shared State Nightmare

Ruby’s GIL — the Global Interpreter Lock — has been the punchline of many conversations about concurrency for a long time. The lock means that even with multiple threads, only one can execute

Rajan Bhattarai Rajan Bhattarai 8 min read
Rails

Active Storage — File Uploads in Rails Without the Ceremony

File uploads have a reputation for being one of those features that look simple and turn out to be a multi-day project. Pick a storage backend, configure credentials, handle direct uploads, generate variants,

Rajan Bhattarai Rajan Bhattarai 8 min read
Developer tips

Contributing to Open Source — The Career Move Most Developers Overthink

The phrase “contribute to open source” carries a weight it doesn’t deserve. Somewhere along the way it became synonymous with submitting a pull request to a major framework, getting accepted by Matz himself,

Rajan Bhattarai Rajan Bhattarai 10 min read
Ruby 3

Ruby 3.2's Data Class — Immutable Value Objects Done Right

If you’ve been writing Ruby for a while, you’ve probably cobbled together something to represent simple value objects — a Struct, a frozen hash, maybe a plain class with an attr_reader and a

Rajan Bhattarai Rajan Bhattarai 7 min read
Rails

Stimulus.js — Adding Interactivity to Hotwire Without a Frontend Framework

Turbo handles navigation and real-time updates beautifully — page transitions, stream updates, frame replacement, all without writing JavaScript. But there’s always that next layer of requirement: a dropdown that opens and closes, a

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