~/talk

Your Bright Metaprogramming Future: Mistakes You'll Make (and How to Fix Them)

Talkat RubyConf 2014 · 2014-11-17..11-19· [ruby]
github:bhaibel
slides:none on file

A concrete roadmap: discovering delayed_job’s send_later leads to reflexive use of send/send_later and a bloated case-tree; refactoring moves the dynamic call into a Formatter class, replaces bag-of-args with explicit parameters, turns formatters into objects, and collapses duplicated methods so the formatter becomes smaller and prettier and cyclomatic complexity drops. Method_missing discussion lists three bugs — no super, no respond_to_missing, no defined_method memoization — and shows anonymous module inclusion's your BFF (const_get or hash) as a workable encapsulation.

AI-written summary · about

  1. 0:00Start
  2. 3:10OBJECT#SEND THE GIANT CASE STATEMENT
  3. 6:07OBJECT#SEND GREAT TRIUMPH
  4. 30:45TAKEAWAYS
~/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.