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 •
Rails

Solid Queue — Background Jobs in Rails 8 Without Redis

For years, the default answer to “how do I run background jobs in Rails?” has been: add Redis, add Sidekiq, configure two separate services, monitor two dashboards, and don’t forget to handle Redis

Rajan Bhattarai Rajan Bhattarai 9 min read
Developer tips

Your GitHub Profile Is Your Developer Brand — Here's How to Make It Count

Most developers treat their GitHub profile like a filing cabinet — a place to dump code and move on. They’re not wrong to use it that way; that’s technically what it’s for. But

Rajan Bhattarai Rajan Bhattarai 10 min read
Ruby 3

Pattern Matching in Ruby 3

Pattern matching landed in Ruby 2.7 as experimental and graduated to stable in Ruby 3.0. Most Ruby developers have heard of it; far fewer use it confidently in production code. This post cuts

Rajan Bhattarai Rajan Bhattarai 8 min read
Rails

Real-Time UI Updates with Turbo Streams in Rails 7 and 8

Real-time features used to mean reaching for ActionCable, writing JavaScript event listeners, and managing WebSocket state that lives entirely outside your Rails stack. Turbo Streams changed that equation entirely. Built into Rails 7

Rajan Bhattarai Rajan Bhattarai 7 min read
Developer tips

Why Developers Who Stay Quiet Get Overlooked (And How to Fix That)

You’ve shipped things that work. You’ve solved problems that stumped your team. You write clean code and know your domain deeply — but the promotion went to someone else, the consulting inquiry landed

Rajan Bhattarai Rajan Bhattarai 9 min read
Ruby-code

Find Intersection Of Arrays Or Sets Cleanly In Ruby 3

Ruby 3+ provides elegant ways to find common elements between arrays, sets, or enum collections using intersection (&) or Set#intersection. This is especially useful for filtering, authorization checks, tag matching, or data deduplication.

Rajan Bhattarai Rajan Bhattarai 1 min read
Ruby-code

Group Array Elements By Multiple Attributes In Ruby

Grouping records by a single attribute is straightforward using Enumerable#group_by. But what if you want to group by multiple attributes, such as categorizing records by both type and status? This method handles that

Rajan Bhattarai Rajan Bhattarai 1 min read
Ruby-code

Deeply Remove All Nils And Empty Values From A Nested Hash In Ruby

When handling deeply nested hashes or API payloads in Rails, it’s common to deal with nil values, empty arrays, or hashes that need to be cleaned before storage or transmission.

Rajan Bhattarai Rajan Bhattarai 1 min read
Ruby-code

Convert An Array Of Single Key Hashes Into An Attribute Hash

You may encounter a situation where you have an array of single-key hashes and need to restructure it into a grouped hash based on the keys.

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