~/talk

Keyword Args — the killer Ruby feature you aren't using

Talkat RubyConf 2016 · 2016-11-10..11-12· [ruby]
links:none on file
slides:none on file

Ruby 2.0 and 2.3 keyword arguments make functions strictly more flexible than positional args, letting optional params be passed out of order, default values refer to earlier kwargs, and hashes splat into kwargs; that enables dependency injection and loose coupling in controllers (headers and stripes options added without changing callers). A discovered pattern, the Context Funnel using **kwargs passthrough, lets deep view code receive new options without rewriting intermediates, and it works in real rendering and SQL-building examples.

AI-written summary · about

  1. 0:00Start
  2. 3:01How Keywords Work
  3. 14:07The Context Funnel
  4. 16:50Summary
~/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.