Forgotten funky functions
summary
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
chapters (42)
- 0:00Introduction
- 1:38My background
- 2:30Purpose of this talk
- 2:55The plan
- 3:29How would you do it
- 3:42Concrete example
- 4:17JavaScript
- 6:33Two questions
- 9:07Diversity is good
- 9:39JavaScript satisfaction curve
- 10:55Dynamically typed
- 11:08PowerShell
- 11:25Scripting
- 12:30Inline data
- 13:44Lambda history
- 18:56async
- 19:21async in JavaScript
- 20:17JavaScript doesnt have meta programming
- 20:49It still allows you to do all those things
- 21:13An example
- 24:49Capability testing
- 25:08Arrow functions
- 25:52eval
- 26:21Challenge
- 26:55Recap
- 28:33Private
- 29:54Omnipotence paradox
- 30:35Lego
- 31:36Making JavaScript more powerful
- 32:55Proxies
- 34:18Handlers
- 34:59Examples
- 35:11Other scripting languages
- 37:10No method
- 41:57Proxy method
- 43:09Action
- 43:33Principles
- 44:07Dont Bowl
- 45:30Ending
- 47:36ACMA Script Standards
- 50:08Using functions in JavaScript frameworks
- 55:11Questions
related talks
26mJavaScript Metaprogramming - ES6 Proxy Use and Abuse
11mAnything is possible! Unlocking the Nightmarish Power of JavaScript..
52mJavaScript Metaprogramming - ES6 Proxy Use and Abuse
31mES6 Uncensored
50mMetaprogramming in JavaScript
36mMetaprogramming - A journey into ES6
32mBreak all the rules
01h 01mRediscovering JavaScript
