Maintainable JavaScript
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已有一定 JavaScript 基础、开始参与多人协作项目的前端开发者
- 需要为团队制定或更新编码规范、代码评审清单的前端负责人
- 刚进入职场、想快速摸清工程化与代码质量门槛的初级工程师
- 带实习生或做技术培训、需要一份讲得清“为什么”的教材的讲师
Not a good fit for
- 完全零基础、尚未写过完整 JavaScript 程序的入门读者
- 主要想学框架用法或最新语法特性的读者,本书几乎不涉及这类内容
- 期待拿到可直接套用的现代构建脚本的读者,书中工具链已明显过时
Reading tips
- 把本书当规范手册用:先通读第一部分,再在评审或重构时按条目回查,不必一次读完。
- 读编程实践部分时,打开自己项目里最乱的那个文件,边读边做对照修改,收效最直接。
- 自动化部分重点理解流程与目的,工具选型换成 ESLint、Prettier、打包器和现行测试框架即可。
- 团队共读时建议每周过一章,把书中条目剪裁成本团队的编码规范并落到评审清单里。
About the publisher
Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.
Contents
- Part One Style Guidelines
- Chapter 1 Basic Formatting
- Chapter 2 Comments
- Chapter 3 Statements and Expressions
- Chapter 4 Variables, Functions, and Operators
- Part Two Programming Practices
- Chapter 5 Loose Coupling of the UI Layer
- Chapter 6 Avoiding Global Variables
- Chapter 7 Event Handling
- Chapter 8 Avoiding "Null Comparisons"
- Chapter 9 Separating Configuration Data from Code
- Chapter 10 Throwing Custom Errors
- Chapter 11 Don't Modify Objects You Don't Own
- Chapter 12 Browser Detection
- Part Three Automation
- Chapter 13 File and Directory Structure
- Chapter 14 Ant
- Chapter 15 Validation
- Chapter 16 File Concatenation and Processing
- Chapter 17 File Minification and Compression
- Chapter 18 Documentation
- Chapter 19 Automated Testing
- Chapter 20 Putting It All Together
- Appendix A JavaScript Style Guide
- Appendix B JavaScript Tools
FAQ
这本书和《JavaScript高级程序设计》是同一作者吗?
2013年出版的书,现在读还不过时吗?
中文版是谁翻译的,质量如何?
需要先精通 JavaScript 再读吗?
书的篇幅大吗,多久能读完?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.