~/talk

JavaScript Metaprogramming - ES6 Proxy Use and Abuse

Talkat NDC Oslo 2017 · 2017-06-14..06-16· [javascript]
slides:none on file

ES6 Proxy is an un-transpilable feature that redefines property access, assignment, function invocation and pairs with the Reflect API and revocable proxies. Examples include runtime validation and logging traps, an observable wrapper, a URL-builder DSL and a clever lazy population via proxies that lets a JSON graph be accessed “infinitely” deep without eager expansion — used successfully on a real-time project. Caveats: proxies are slower than plain objects and can be abused (e.g. a seatbelt never-undefined proxy) and can break serialization.

AI-written summary · about

  1. 0:00Intro
  2. 0:42Metaprogramming
  3. 2:36Language Constructs / Syntax
  4. 3:15Operators
  5. 5:10Introspection
  6. 5:39Self-modification
  7. 6:25Intercession
  8. 9:02Proxy Server
  9. 10:11Proxying Objects
  10. 13:31Handler
  11. 15:11Traps
  12. 16:43Revocable
  13. 18:20Validation
  14. 20:45Debugging / Logging
  15. 22:11Observable objects
  16. 24:07Construction / DSLS
  17. 27:42Deeply accessing a JSON "graph"
  18. 29:48MongoDB Populate?
  19. 30:47Schemaless
  20. 31:38Naming conventions
  21. 32:41Object.assign (eager)
  22. 34:32Proxy (lazy)
  23. 39:21Redefining Undefined
  24. 40:25Seatbelts
  25. 42:47Why can't I do this??
~/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.