~/talk

The Harvey Dent Dilemma: Ruby's White Knight Rises (or Falls)

Talkat RubyConf India 2024 · 2024-11-29..11-30· [ruby]
slides:none on file

Frozen Strings cut object allocations by about 60% for constants but cause memory bloat and long‑lived allocations when used with dynamic strings, so use only for immutable literals. Memoization removes repeated DB or third‑party API calls and lowers server load but risks unbounded memory growth if cached indiscriminately. Monkey patching that changes core behavior like Array#size +1 creates subtle bugs. instance_eval lets code reconfigure objects at runtime but opens injection and debugging nightmares. Ractors offer GVL‑bypassing parallelism yet remain experimental; endless methods and argument forwarding trade readability for terseness.

AI-written summary · about

  1. 0:00Introduction to Ruby's journey
  2. 2:23Frozen string literals explained
  3. 5:43Hero or villain: frozen strings
  4. 6:05Memoization for performance
  5. 8:10Hero or villain: memoization
  6. 8:32Monkey patching risks
  7. 10:01Hero or villain: monkey patching
  8. 10:25Metaprogramming with instance_eval
  9. 12:34Hero or villain: metaprogramming
  10. 13:15Ruby's new features overview
  11. 16:41Summary and best practices
~/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.