FirstDEV blog
  • Home
  • Ruby
  • Ruby On Rails
  • Tips
  • Solutions
  • About
Subscribe
cdrrazan

Rajan Bhattarai

Full Stack Software Developer! 💻 🏡 Grad. Student, MCS. 🎓 Class of '23. GitKraken Ambassador 🇳🇵 2021/22. Works with Ruby / Rails. Photography when no coding. Also tweets a lot at TW / @cdrrazan!

118 posts •
Developer tips

How to Optimize Your LinkedIn Profile as a Developer (So Recruiters Actually Find You)

Most developer LinkedIn profiles are either a digital resume with bullet points copied from a Word document, or a ghost town that hasn’t been touched since the last job search. Both miss what

Rajan Bhattarai Rajan Bhattarai 11 min read
Ruby-code

Find The Longest Consecutive Sequence In An Array In Ruby

Identify the longest run of consecutive integers in an unsorted array — useful for streak detection, range analysis, and data validation.

Rajan Bhattarai Rajan Bhattarai 1 min read
Ruby 3

Ruby String Methods You're Probably Underusing — format, scan, match, and gsub with Blocks

String manipulation is one of those areas where developers develop habits early and rarely revisit them. split, include?, gsub, strip — these cover a lot of ground. But Ruby’s String class has methods

Rajan Bhattarai Rajan Bhattarai 10 min read
Rails

ActiveRecord Transactions and Locking — Keeping Data Consistent Under Concurrency

Database transactions are one of those topics where knowing the basics is easy, but knowing when the basics aren’t enough is harder. ActiveRecord::Base.transaction wraps database operations in an atomic block — either everything

Rajan Bhattarai Rajan Bhattarai 9 min read
Developer tips

Developer Burnout — How to Recognize It Before It's Too Late and Actually Recover

Burnout in software development doesn’t usually announce itself. It accumulates. The work that used to be interesting stops being interesting. You spend longer on tasks that used to take no time. You feel

Rajan Bhattarai Rajan Bhattarai 10 min read
Ruby-code

Convert An Array Of Hashes Into A Grouped Hash By A Key In Ruby

Transform a flat array of hashes into a hash where each key maps to an array of matching records — the core operation for grouping, summarizing, and pivoting collections.

Rajan Bhattarai Rajan Bhattarai 2 min read
Ruby 3

Method Objects in Ruby — Treating Methods as First-Class Values

Ruby methods are first-class citizens in a way that most developers don’t fully use. You can grab a method as an object, pass it around, convert it to a proc, unbind it from

Rajan Bhattarai Rajan Bhattarai 9 min read
Rails

Rails Concerns — When They Help, When They Hurt, and What to Use Instead

Concerns are one of Rails’ most polarizing features. On one hand, they’re built-in, well-supported, and solve the real problem of reusing code across models and controllers. On the other hand, a codebase full

Rajan Bhattarai Rajan Bhattarai 9 min read
Developer tips

How to Negotiate a Promotion as a Developer — Without Playing Political Games

Most developers approach a promotion conversation like a salary negotiation: wait for performance review season, make their case, and hope the manager agrees. This approach loses promotions that should have been won, because

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