Ruby 3.4 Will Have 'it '— There’s never been any doubt: Ruby has it. But now as well as the ‘it’ factor, it really will have it . Confused? it is a nicer looking shortcut to the first parameter in a block (a la _1 ) – e.g. arr.each { puts it } . Ruby 3.3 will warn on it with 3.4 (due in a year’s time) getting the real deal. Takashi Kokubun |
“Useless Ruby Sugar”: Endless (One-Line) Methods— Victor continues his fantastic series on controversial, newer elements of Ruby syntax with a look at single line method definitions, as supported by Ruby 3.0 and higher, e.g. def double(x) = x * 2 . Victor Shepelev |
![]() Free eBook: Efficient Search in Rails with Postgres— In this eBook, Leigh Halliday explains how to speed up a search query from seconds to milliseconds — walking through using exact matches, similarity matches with trigrams, partial matches with ILIKE, and natural language matches. pganalyze sponsor |
Pressure Kills Cognition— Free up space for deep work. Burst capacity for today's deadlines and strategies to make tomorrow's goals attainable. Test Double sponsor |
BasedUUID: URL-Friendly, Base32-Encoded UUIDs— The rationale is to have a more manageable, ‘double-clickable’ UUID format – the result is a 26-character, base32-encoded (no i , l , o , or u ), lowercase string (with an optional prefix) like 51yr0ebuck1sp00l0lkk7cssd1 . Piotr Chmolowski |
Find Ruby Jobs with Hired— Hired makes job hunting easy-instead of chasing recruiters, companies approach you with salary details up front. Create a free profile now.
Hired |
|
|