~/talk

The Modern Rubyist: When and How to Use the Latest Features

Talkat EuRuKo 2024 · 2024-09-11..09-13· [ruby]
slides:none on file

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

  1. 0:00Introduction
  2. 2:04Adopting new Ruby features
  3. 9:50Ignoring Ruby’s evolution
  4. 11:53Ruby 3.0 endless method
  5. 18:17Data class for value objects
  6. 22:29Hash value omission
  7. 24:38Pattern matching in Ruby
  8. 31:58Exploring new features
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.