Pro.Prototypes Workshop
summary
A hands-on workshop that explores JavaScript prototype mechanics using live code in the browser console and Node with Chrome inspect. It demonstrates extremely deep prototype chains (up to 1000 levels) to reveal performance limits, constructs mixed class/function chains to emulate super calls, and shows replacing the chain tail with a proxy-backed prototype end. Examples include a TypeScript library providing a strict-typing decorator that throws on type mismatches and an async lifecycle decorator that delays inheritance; all demos and source code are on GitHub and most run live despite occasional debugger issues.
AI-written summary · about
chapters (11)
- 0:00Welcome
- 1:51Preparing examples
- 7:16JavaScript prototypes history
- 17:29Constructors vs classes
- 27:19Primitives and wrappers
- 37:00Metaprogramming with symbols
- 47:02Proxies and prototype chains
- 1:00:13Mixing classes and constructors
- 1:11:03Strict typing libraries
- 1:34:54App lifecycle and structure
- 1:40:28Q&A
related talks
21mUnraveling JavaScript Prototypes
28mJavaScript inheritance: beyond the basics
50mMetaprogramming in JavaScript
39mJavascript for people who didn't learn Javascript
45mJavaScript Prototypes Behind the Scenes
26mJavaScript Metaprogramming - ES6 Proxy Use and Abuse
45mTypes in Prototypes
58mMultiple Inheritance in JavaScript
