~/talk

Exploring the Enigmatic: Navigating JS's Uncharted Realms

Talkat jsday 2024 · 2024-04-11..04-12· [javascript]
slides:none on file

Shows concrete patterns: uses Object.defineProperty to set writable/enumerable/configurable, hides per-instance keys with Symbol and warns about Symbol.for leaking, stores private clicked state in a module-scoped WeakMap so the garbage collector clears entries and external code can’t enumerate them, and wraps the exposed API with a Proxy (get/set) plus Reflect helpers to validate sets and return booleans not exceptions. Builds a demo button component that mostly resists casual tampering but can be circumvented if the symbol or original DOM reference is obtained.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10JavaScript property descriptors
  3. 8:18JavaScript symbols for privacy
  4. 15:08WeakMap and WeakSet for private data
  5. 22:03Proxy API for object control
  6. 27:05Reflect API for meta-programming
  7. 30:20When to use advanced JS features
  8. 34:19Q&A
~/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.