Rails Action Cable โ Real-Time Features in Rails with WebSockets Turbo Streams handle real-time updates elegantly for most cases โ server broadcasts a change, the page updates. But Turbo Streams build on top of Action Cable, and sometimes you need to work at
Developer tips Networking for Introverted Developers โ Without Pretending to Be Someone You're Not The word โnetworkingโ was invented to make introverts miserable. It conjures images of badge-scanning at conference happy hours, small talk with strangers over lukewarm beer, and handing out business cards to people youโll
Ruby-code Paginate An Array In Ruby Using Each_slice When displaying large datasets in pages โ or processing records in batches โ you need to split an array into fixed-size chunks. Rubyโs each_slice handles this cleanly without manual index arithmetic.
Ruby 3 method_missing and respond_to_missing? โ Ruby Metaprogramming That's Actually Useful Metaprogramming has a reputation for being either magical or dangerous, depending on who you ask. Both reactions are earned. Rubyโs method_missing hook lets you intercept calls to methods that donโt exist and handle
Rails Service Objects in Rails โ Keeping Controllers Thin Without Losing Your Mind Fat models, skinny controllers was the mantra for years. Then models got fat and we realized that was wrong too. Business logic crammed into ActiveRecord models means models responsible for database persistence, validations,
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 โ
Ruby-code Count Word Frequency In A String In Ruby Counting how often each word appears in a string is a common text-processing task โ useful for analytics, content analysis, keyword detection, and building word clouds. Rubyโs Enumerable provides an idiomatic one-liner.
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,
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 โ