~/talk

You might not need JavaScript classes

Talkat Voxxed Days Cluj-Napoca 2019 · 2019-10-30..10-31· [javascript]
slides:none on file

Argues that using classes in JavaScript often creates surprises: prototype is a live object so changing it affects existing instances, classes lack true privacy and static features, and methods bound per instance become per-instance bound methods (extra functions, worse minification and tree-shaking). Proposes concrete alternatives: closure-based factories and object composition, plus real examples where frameworks migrate to functions like React hooks and Vue composition, showing equal capability with simpler, safer runtime behavior.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:26Roadmap of the presentation
  3. 3:11Why classes were introduced
  4. 5:59Common pitfalls of classes
  5. 15:58Functional alternatives
  6. 25:50Frameworks moving away
  7. 35:12Summary and conclusions
  8. 38:26Q&A session
~/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.