IOC + Javascript
summary
Argument: bring dependency injection, AMD modules and promises into browser and server JavaScript to manage large apps. Demonstration assembles a Monty Hall app with KujoJS and the wire.js container, using AMD/UMD/CommonJS loaders (curl/require), meld-style AOP, when-style promises and build-time transforms. The project grows to about 300 JavaScript modules and six HTML pages, uses per-view test harnesses and works in both browser and Node, improving testability, refactorability, composability and team-scalability.
AI-written summary · about
chapters (15)
- 0:00Introduction to talk
- 3:11Why IOC in JavaScript
- 8:17IOC container overview
- 13:32AMD module definition
- 24:19AMD in practice demo
- 27:51AMD loaders and globals
- 36:25CommonJS module format
- 40:20Compiled to AMD concept
- 42:15AMD to CommonJS demo
- 48:58Dependency injection with AMD
- 57:09DOM as first-class citizen
- 1:05:13AOP and event handling
- 1:15:18Asynchronous operations with promises
- 1:20:52Code organization benefits
- 1:27:41Testing and collaboration
related talks
41mThe future is modules not frameworks. JS modules Architecture demo.
04mDevelopment of JavaScript applications
23mParty like it's 1999, write JavaScript like it's 2012
29mDesigning very large JavaScript applications
38mBuilding Universal Apps
25mModern JavaScript
59mNo Strings Attached: JavaScript without Webpack, Transpilers, or Frameworks
45mLoading Modules Everywhere!
