The Modern Rubyist: When and How to Use the Latest Features
summary
Shows concrete examples from production code (Mastodon, deod) and demos actual tradeoffs: endless method (Ruby 3.0, makes single-expression helpers clearer and discourages accidental complexity), data class (Ruby 2022, frozen, value-equality objects for packing API responses), hash value omission (2021, enforces consistent naming and benchmarks ~3x faster than using Binding), and pattern matching (creates locals, requires pinning to avoid overwrites, rightward operator raises on mismatch). Recommends experimenting locally and adjusting linters rather than banning new syntax.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 2:04Adopting new Ruby features
- 9:50Ignoring Ruby’s evolution
- 11:53Ruby 3.0 endless method
- 18:17Data class for value objects
- 22:29Hash value omission
- 24:38Pattern matching in Ruby
- 31:58Exploring new features








