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

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-code

Generate All Permutations Of An Array In Ruby

Produce every possible ordering of array elements using Array#permutation.

Rajan Bhattarai Rajan Bhattarai 1 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-code

Check If Two Strings Are Anagrams In Ruby

Determine whether two strings contain the same characters in any order.

Rajan Bhattarai Rajan Bhattarai 1 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
« Newer Posts Page 6 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! ๐Ÿš€