First Class Commands: The 2017 Edition
summary
Argues that turning method invocations into first-class commands lets code serialize, debounce, inspect and persist edits; shows JavaScript buffer examples that return Edit objects, a job queue pattern and use of Ember Concurrency task instances; implements reversible edits for undo/redo histories and demonstrates multi-user convergence via operational transform with GUIDs (Alice, Bob, Carol test) — prototype code and sync tests run and finally converge correctly.
AI-written summary · about
chapters (8)
- 0:00Start
- 0:09First-Class Commands an unexpectedly fertile design pattern
- 2:46the canonical example: mutable data
- 9:26storing invocations
- 22:20transforming invocations
- 48:36how does differential synchronization differ from the command pattern?
- 50:15distributed version control
- 55:00separation of concerns
related talks
37mBuilding a Collaborative Text Editor
08mLightning Talk
59mEmber.js, and why the framework helps you unlocking unprecedented productivity.
58mDude, where is my class?!
38mConfident Frontend with Elm
38mUn-dux Your Front-end
45mFrom Zero to Live with Functional JavaScript Applications (Part 1)
25mDefault to Consistent
