~/talk

Rebuilding Facebook Chat

Talkat JSConf EU 2012 · 2012-10-06..10-07· [frontend-architecture]
slides:none on file

A rewrite of Facebook Chat replaces a monolithic client with CommonJS modules and dynamic server-side dependencies, cuts user bug reports from thousands to hundreds, and ships in six months. The front end moves from brittle MVC/event spaghetti to a functional style: singletons for thread stores, incremental loading for conversations and participants, and JSON-serializable application state. Tests run in Node with jsdom/contextify and a command-line harness that encourages isolated unit tests.

AI-written summary · about

  1. 0:00Start
  2. 11:02JS require "dynamic" // PHP - server code
  3. 19:46JSOOP Style - Redux
  4. 22:38JSOOP Style - Testability
  5. 26:11JS Functional Style Example
~/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.