~/talk

Hey Underscore, You're Doing It Wrong!

Talkat HTML5DevConf 2013 · 2013-04-01..04-03· [javascript, functional-programming]
links:none on file
slides:none on file

Argues Underscore.js advertises functional tools but blocks real functional patterns: Underscore reverses argument order so autocurry and partial application are awkward, and it forbids extending map so custom Maybe/Either functors can’t integrate. Shows concrete rewrites: add + autocurry, a Dot(property) accessor, composing reverse and first to make last, mapping over promises, and a compose-based pipeline that replaces chain. Mentions a forked utility called score-under created by the author and says compose-heavy code runs in production at luur.

AI-written summary · about

  1. 0:00Start
  2. 2:21Currying Composition
  3. 14:03Category Theory
  4. 16:01Example of Composition
  5. 24:04Useful Practical Applications
  6. 31:31Conclusion
~/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.