~/talk

Ten Things You Didn't Know You Could Do

Talkat Aloha RubyConf 2012 · 2012-10-08..10-09· [ruby]
slides:none on file

Forty two concrete Ruby tricks appear and many are demonstrated working live such as 42 tricks rather than ten, enabling tail call optimization to make deep recursion feasible, using spawn with PID and IO redirection to control subprocesses, reading URLs via open-uri, getting cryptographic bytes from SecureRandom, using Hash#fetch to fail fast, ARGF and the flip flop operator to slice files, unpacking PNG headers to read width and height, and using Enumerator chaining and each_with_object for clearer iteration.

AI-written summary · about

  1. 0:00Start
  2. 4:58View the Machine Instructions
  3. 5:39Tail Call Optimization
  4. 12:07Dodging a Warning
  5. 12:38Shortcut Variable Interpolation
  6. 14:38Associative Arrays
  7. 15:45Easy, Fast Memoization
  8. 16:33Rolling Your Own Dispatch Table
  9. 22:12Chaining Iterators
  10. 23:44Programmatically Build Classes
  11. 24:03Programmatically Build Modules
  12. 24:50Subclass Module
  13. 28:03Profile the Garbage Collector
  14. 29:54The SDEBUG Flag
  15. 33:00Get Random Data
  16. 34:29Template Methods
  17. 37:06Mini Ruby Programs
~/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.