~/talk

Forgotten funky functions

Talkat HolyJS 2017 Piter · 2017-06-02..06-03· [javascript]
slides:none on file

Shows how to extract argument names by calling a function’s toString and parsing then use rename-args wrapper to turn positional parameters into a single named-object API (used to adapt REST endpoints in production). Demonstrates using toString+eval introspection for feature detection, and ES6 proxies to implement negative array indices and strict objects that throw on unknown properties. Examples include working code and deployment stories, plus cautions about eval and when proxies add runtime cost.

AI-written summary · about

  1. 0:00Introduction
  2. 1:38My background
  3. 2:30Purpose of this talk
  4. 2:55The plan
  5. 3:29How would you do it
  6. 3:42Concrete example
  7. 4:17JavaScript
  8. 6:33Two questions
  9. 9:07Diversity is good
  10. 9:39JavaScript satisfaction curve
  11. 10:55Dynamically typed
  12. 11:08PowerShell
  13. 11:25Scripting
  14. 12:30Inline data
  15. 13:44Lambda history
  16. 18:56async
  17. 19:21async in JavaScript
  18. 20:17JavaScript doesnt have meta programming
  19. 20:49It still allows you to do all those things
  20. 21:13An example
  21. 24:49Capability testing
  22. 25:08Arrow functions
  23. 25:52eval
  24. 26:21Challenge
  25. 26:55Recap
  26. 28:33Private
  27. 29:54Omnipotence paradox
  28. 30:35Lego
  29. 31:36Making JavaScript more powerful
  30. 32:55Proxies
  31. 34:18Handlers
  32. 34:59Examples
  33. 35:11Other scripting languages
  34. 37:10No method
  35. 41:57Proxy method
  36. 43:09Action
  37. 43:33Principles
  38. 44:07Dont Bowl
  39. 45:30Ending
  40. 47:36ACMA Script Standards
  41. 50:08Using functions in JavaScript frameworks
  42. 55:11Questions
~/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.