~/talk

Stupid Ruby Tricks

Talkat Ruby on Ales 2015 · 2015-03-05..03-06· [ruby]
slides:none on file

Covers concrete Ruby tricks: use File.read/File.write instead of open/close, drop optional parentheses but avoid overloading lines, and create non‑shared defaults with a default_proc block to return fresh arrays or recursive hashes (you can swap the proc at runtime). Shows call‑chain control with prepend vs include and using defined?(super) guards, plus practical persistence with PStore (transactional file DB) and YAMLStore interchangeable APIs storing OpenStructs or custom objects.

AI-written summary · about

  1. 0:00Introduction
  2. 1:32Why stupid Ruby tricks
  3. 9:41File read/write shortcuts
  4. 11:50Optional parentheses
  5. 13:14Default hash quirks
  6. 19:18Include/prepend and super
  7. 23:16Real reason for talk
  8. 24:59Data and __END__
  9. 26:45PStore and YAMLStore
  10. 30:22Closing remarks
~/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.