You should be using Twitter's Flight framework.
summary
Flight claims to be a tiny, 5K gzipped framework that requires jQuery and gives a modular, event-driven component model with functional mixins. The Yeoman generator creates a ready app and Karma test setup, and community packages add flight-mocha/flight-jasmine with event spies and DOM stubbing. Adoption at RetailMeNot proves it runs in production. A hello world lands in ~15 minutes and a counter demo in ~20, and tests become trivial because components expose clear event-based APIs.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:23The problem with frameworks
- 3:26Understanding flight.js
- 5:49Composition over inheritance
- 7:36Building flight components
- 11:02Event-based architecture
- 12:17Testing with flight
- 17:04Integration and conclusion
related talks
25mFlight.js
37mMeteor - A Full Stack Framework For Building Pure JavaScript Apps
01h 07mModern Frontend Engineering
32mJavaScript at Scale by Stephanie Siaw (Eng) | JSConfAM19
25mBuilding the Next Generation of Airlines Websites
32mfighting crime and kicking apps with Batman.js
51mBuilding Amazing Single Page Applications the Right Way
34mHow to build front-end web apps that scale
