Anything is possible! Unlocking the Nightmarish Power of JavaScript..
summary
Shows how with + Proxy breaks the scope chain so identifiers resolve to lazily generated properties, demonstrates getters and proxy get traps that run eval on property names, and builds concrete demos: an on‑the‑fly binary literal demo, PHP‑style bareword strings, and a typed‑variable shim using double‑dollar names. Code runs live in a REPL, uses real proxy traps for debugging and mutation, and is explicitly fragile and exploratory — ideal for JavaScript internals fans, not for production patterns.
AI-written summary · about
chapters (17)
- 0:00Intro
- 0:19What's a variable?
- 1:22JavaScript Objects
- 1:59Getter Properties
- 2:45Infinite Properties
- 3:09Proxy: an object with superpowers
- 3:52Interesting Proxy: debug-logging all property access
- 4:26Interesting Proxy: properties can't start with "s"
- 4:46Interesting Proxy: eval all the things
- 5:08The philosophy of a Proxy
- 5:30JavaScript scope
- 5:58Scope chain
- 6:29Let's review
- 7:16Defining variables with style
- 8:29Applications: binary literal
- 8:52Applications: PHP-like bare strings
- 9:29Applications: variables with strict types!!
related talks
26mJavaScript Metaprogramming - ES6 Proxy Use and Abuse
27mUnlock the Proxy Power (Vue.js)
52mJavaScript Metaprogramming - ES6 Proxy Use and Abuse
41mJavaScript is Weird. MythBusters Special
50mMetaprogramming in JavaScript
24mJavaScript metaprogramming with ES2015 Proxy
54mMetaProgramming with JavaScript
38mExploring the Enigmatic: Navigating JS's Uncharted Realms
