~/talk

You might not need JavaScript classes

Talkat Devoxx Belgium 2019 · 2019-11-04..11-08· [javascript, frontend-architecture]
slides:none on file

Argues that ES2015 classes create false expectations because they’re syntactic sugar over live prototypes (changing a prototype mutates existing instances), lack true private/static fields in current JS, and force fragile context binding (this) which often turns methods into per-instance functions. Demonstrates with a counter and a movie-API example, shows factory/closure patterns, modules and object composition as alternatives, and cites React Hooks and Vue Composition API as real-world moves away from classes. closures and composition offered as practical replacements.

AI-written summary · about

  1. 0:00Introduction
  2. 3:55Why JavaScript got classes
  3. 6:26Problems with classes
  4. 16:27Alternatives with functions
  5. 26:03Frameworks dropping classes
  6. 37:47Recap and key takeaways
  7. 39:54Q&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.