Maintainable JavaScript
summary
Maintainable JavaScript means code that works for five years without major changes; emphasis is on intuitive structure, clear naming, comments for surprising lines, no modifications to objects you don’t own, and separating HTML/CSS/JS. Recommends JSDoc/YUIDoc/Docco, linters (JSLint/JSHint), minifiers (YUI Compressor, uglifyjs, Closure), and a build system (Ant or grunt) producing dev/test/deploy bundles. Notes a ten‑year‑old codebase that was easy to change and mentions a small utility called props-to-js on GitHub for externalizing configuration.
AI-written summary · about
chapters (19)
- 0:00Intro
- 1:26What is Maintainability
- 2:50Your company cares
- 6:24Maintainable code
- 9:55Code conventions
- 12:04Code style guides
- 14:38Merge conflicts
- 18:25Naming
- 20:28Acronyms
- 22:24Programming Practices
- 23:13Frontend Layers
- 24:03JavaScript in HTML
- 25:58Keep JavaScript out of CSS
- 32:56Throw your own errors
- 35:44Type of
- 36:10Configuration data
- 39:25Automation
- 40:14Build Process
- 47:05Conclusion








