~/talk

MetaProgramming with JavaScript

slides:none on file

Modern JavaScript provides a practical metaprogramming API: Reflect and Proxy are used to inject and synthesize behavior. Examples show using Object.defineProperty/defineProperties to add first/last on Array.prototype (so all arrays share them), building a revocable proxy, and creating a prototype-end proxy for Map that synthesizes keys as properties (e.g., langs.Java returns the author). The proxy-based synthesis works and simplifies dynamic access, but requires careful unit tests for edge cases.

AI-written summary · about

  1. 0:00Introduction to meta programming
  2. 3:09Prototypal inheritance basics
  3. 7:46Dynamic property access
  4. 11:17Method injection explained
  5. 14:29Adding methods to objects
  6. 19:13Injecting properties into classes
  7. 27:02Reflect and Proxy introduction
  8. 30:16Proxy handlers and traps
  9. 35:56Creating a proxy example
  10. 39:49Synthesizing dynamic properties
  11. 48:03Advanced proxy placement
  12. 52:17Summary and book mention
~/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.