~/talk

Scalable JavaScript architecture

Talkat Frontend United 2016 · 2016-05-27..05-28· [javascript, frontend-architecture, pwa]
links:none on file
slides:none on file

Claims a concrete, modular architecture: five favorite patterns (revealing module, mediator, singleton/factory, facade) applied to a split-up HTML5 audio player that replaces one big global blob. Uses npm modules and bundlers (webpack/browserify), shows how a mediator publish/subscribe decouples play button audio and video, and recommends immutability or cloning (mutable.js, icepick, lodash) to avoid shared-state bugs. Adds offline-first with service workers progressive web apps. Results: easier debugging, unit and regression testing, and safer refactoring.

AI-written summary · about

  1. 0:00Intro
  2. 0:20The global blob
  3. 4:41Use Design patterns
  4. 5:21Design Patterns Elements of Reusable Object-Oriented Software Erich Gamma Richard Helm Ralph Johnson John Vlissides
  5. 7:425 design patterns For scalable javascript architecture
  6. 8:23Module Pattern • Reveal only what you want • Highly testable • Private functions and variables
  7. 18:55Dependency Inject All the things!
  8. 20:55Mediator pattern
  9. 28:56Pass by reference
  10. 31:26Facade pattern
  11. 33:17Study the language Be critical of frameworks Modularize Use mediator to cut deps Use creational patterns Hide innerworkings • Use the right pattern in the right place
~/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.