Ruby 3 Proc vs Lambda in Ruby β Two Callable Objects, Different Rules Ruby has two closely related callable objects β Proc and lambda β and the difference between them trips up developers more than almost any other Ruby concept. They look similar, theyβre both instances
Rails Active Storage β File Uploads and Attachments in Rails Without the Complexity File uploads have a reputation for being the feature that always requires a gem, a CDN configuration, and half a day of setup. Active Storage, built into Rails 5.2+, changes that. It handles
Developer tips Building a Developer Portfolio That Actually Gets You Hired Most developer portfolios are a graveyard of half-finished to-do apps and cloned tutorials. Hiring managers have seen hundreds of them. Theyβre not evaluating whether you know CRUD β theyβre trying to answer one
Ruby-code Flatten A Nested Array To A Specific Depth In Ruby Use Array#flatten with a depth argument to collapse nested arrays to a precise level β avoiding full flattening when partial structure needs to be preserved.
Ruby 3 Range Objects in Ruby β More Than Just Iteration Most Ruby developers use ranges for iteration and not much else. (1..10).each, maybe ('a'..'z') for alphabet work, perhaps a case condition or two. But ranges in Ruby are full objects with a rich
Rails Rails 8 Authentication Generator β Built-in Auth Without Devise Authentication is one of those problems that sounds simple and isnβt. Devise has solved it for Rails developers for over a decade β but itβs also a dependency that ships with opinions, a
Developer tips How Open Source Contributions Build Your Developer Career Open source contribution has a reputation problem. The dominant narrative is heroic: submit a patch to Rails, get merged, become famous. The reality β and the more useful version β is that even
Ruby-code Deep Merge Two Nested Hashes Without Losing Keys In Ruby Perform a recursive hash merge that combines nested values instead of overwriting them β useful for configuration merging, settings overrides, and building complex data structures.
Ruby 3 Struct vs OpenStruct vs Data β Choosing Lightweight Value Objects in Ruby Ruby gives you three tools for creating lightweight objects without the boilerplate of a full class definition: Struct, OpenStruct, and the newer Data (Ruby 3.2+). Each serves a different purpose, and the wrong