The Way of JavaScript Cultivation cover

The Way of JavaScript Cultivation

Rating 3.8
Word count
279K words
Chapters
113
ISBN
9787115528971

Tags

Summary

The book is divided into four parts: fundamentals, core techniques, advanced applications, and a hands-on project. The fundamentals section covers identifiers, keywords and reserved words, variables, data types, expressions and operators, control flow statements, three ways to embed JavaScript code in a web page, and program debugging methods. The core techniques section covers JavaScript functions, arrays, JSON, string handling, timers, the Math object, the Date object, the BOM, the DOM model, using the DOM to manipulate HTML documents, forms, and tables, using JavaScript to work with attributes and element content, event handling, and regular expressions. The advanced applications section covers object-oriented and component development in JavaScript, Ajax programming, and more. The hands-on project builds a cloud drive using HTML5 + CSS3 + JavaScript.

Editor's review

Among the many JavaScript books published in recent years, The Way of JavaScript Cultivation has earned sustained attention from the developer community for its distinctive positioning and solid content. Drawing on nearly two decades of front-end development and team management experience, author Nie Changhong goes beyond superficial explanations of syntax and API usage to examine how JavaScript's core mechanisms connect with modern engineering practice. The book's central value lies in elevating the study of a programming language to the level of the "Way" (dao), emphasizing a thorough grasp of the language's internal logic, design patterns, and engineering mindset. The first half systematically reviews core JavaScript concepts—from prototype inheritance, closures, and asynchronous programming to new ES6+ features—and reorganizes them as "cultivation methods" to help readers build a deep understanding of the language system. The second half turns to practical application, covering advanced topics such as modular and component-based development, test-driven development (TDD), performance optimization, and team collaboration standards, closely aligned with the engineering needs of modern front-end framework projects such as Vue.js and React. Particularly noteworthy is the author's rejection of fragmented lists of knowledge points in favor of extensive case analyses drawn from real projects and "cultivation points," guiding readers to think about the trade-offs behind technology choices and to develop the architectural thinking needed to solve complex problems. The book has received a rating of over 8.5 on Douban, where readers widely describe it as detailed and well-structured, especially suited to developers who have mastered the basics but want to break through bottlenecks and build a systematic knowledge system. It is more like a technical guide to be read repeatedly, drawing nourishment from practice and reflection.

Who it's for

A good fit for

  • Intermediate developers with a grasp of basic JavaScript syntax who want to systematically deepen their understanding of the language's core principles
  • Front-end engineers who encounter design pattern, code organization, or performance issues in projects and are looking for best practices and solutions
  • Tech leads or architects who want to improve team development efficiency from a front-end engineering perspective (such as build, testing, and collaboration)
  • Developers with some experience but a fragmented knowledge base who want to rebuild a complete understanding of JavaScript and modern front-end development

Not a good fit for

  • Absolute beginners with no programming background who want to learn JavaScript from scratch
  • Readers who only need a quick reference for a specific API or an introductory framework guide and are looking for a lookup manual

Reading tips

  1. Reading in chapter order is recommended, with particular attention to the "Cultivation Summary" and "Reflection Questions" at the end of each chapter, which help consolidate and deepen understanding
  2. When reading the engineering practice content in Part II, it is best to pair it with a personal or work project for comparison and practice, putting the book's patterns into application
  3. The book is information-dense, so there is no need to finish it in one sitting. A combination of close reading and skimming works well: focus on weaker areas first, then read through to build connections

About the publisher

Posts & Telecom Press China · Founded in 1953

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

  1. 版权信息
  2. 内容提要
  3. 序言
  4. 第1章 JavaScript入门
  5. 1.1 JavaScript概述
  6. 1.2 JavaScript代码的调试方法
  7. 1.3 第一个JavaScript实例
  8. 1.4 标识符、关键字和保留字
  9. 1.5 直接量
  10. 1.6 变量
  11. 1.7 数据类型
  12. 1.8 表达式和运算符
  13. 1.9 语句
  14. 1.10 在网页中嵌入JavaScript代码
  15. 练习题
  16. 第2章 Array及JSON
  17. 2.1 Array数组及其在图片切换中的应用
  18. 2.2 JSON
  19. 练习题
  20. 第3章 使用JavaScript操作属性及元素内容
  21. 3.1 使用JavaScript操作元素属性及样式属性
  22. 3.2 使用classList属性操作类属性
  23. 3.3 使用cssText属性设置或修改元素行内样式
  24. 3.4 使用getComputedStyle()和currentStyle获取样式
  25. 3.5 使用innerHTML属性访问或设置元素内容
  26. 3.6 自定义属性及其在图片切换中的应用
  27. 练习题
  28. 第4章 JavaScript函数
  29. 4.1 函数定义
  30. 4.2 return语句详解
  31. 4.3 函数调用
  32. 4.4 arguments实参集合对象
  33. 4.5 使用函数封装图片切换代码及函数传参实例
  34. 4.6 闭包
  35. 4.7 this指向及this的应用
  36. 4.8 内置函数
  37. 练习题
  38. 第5章 定时器、Math对象及Date对象
  39. 5.1 定时器
  40. 5.2 Math对象
  41. 5.3 Date对象的创建及其常用方法
  42. 5.4 使用定时器、Date对象和Math对象实现倒计时效果
  43. 练习题
  44. 第6章 字符串
  45. 6.1 字符串概述
  46. 6.2 操作字符:charAt()、charCodeAt()和fromCharCode()
  47. 6.3 字符搜索方法:indexOf()和lastIndexOf()
  48. 6.4 截取字符串方法:substring()、substr()和slice()
  49. 6.5 分割字符串方法:split()
  50. 6.6 字符串大小写转换及字符串的比较
  51. 练习题
  52. 第7章 使用HTML DOM对象操作HTML文档
  53. 7.1 HTML DOM概述
  54. 7.2 节点类型
  55. 7.3 使用HTML DOM访问HTML文档
  56. 7.4 使用DOM创建、插入、修改和删除节点
  57. 7.5 使用HTML DOM克隆节点
  58. 7.6 使用HTML DOM操作表单
  59. 7.7 使用HTML DOM操作表格
  60. 练习题
  61. 第8章 BOM对象
  62. 8.1 BOM结构
  63. 8.2 window对象
  64. 8.3 navigator对象
  65. 8.4 location对象
  66. 8.5 history对象
  67. 8.6 screen对象
  68. 练习题
  69. 第9章 事件处理
  70. 9.1 事件处理概述
  71. 9.2 事件处理程序的绑定
  72. 9.3 事件对象
  73. 9.4 事件流
  74. 9.5 绑定事件的取消
  75. 9.6 事件默认行为的取消
  76. 9.7 使用oncontextmenu事件自定义上下文菜单
  77. 9.8 焦点事件
  78. 9.9 键盘事件
  79. 9.10 鼠标拖曳事件
  80. 9.11 鼠标滚轮事件
  81. 练习题
  82. 第10章 使用正则表达式进行模式匹配
  83. 10.1 模式匹配的引出:找出字符串中的所有数字
  84. 10.2 正则表达式的定义
  85. 10.3 使用RegExp对象进行模式匹配
  86. 10.4 使用string对象的模式匹配方法进行匹配
  87. 练习题
  88. 第11章 JavaScript面向对象及组件开发
  89. 11.1 JavaScript面向对象编程概述
  90. 11.2 JavaScript对象的创建
  91. 11.3 对象属性和方法的访问方式
  92. 11.4 原型链
  93. 11.5 使用面向对象方式编写选项卡
  94. 11.6 包装对象
  95. 11.7 toString()和valueOf()
  96. 11.8 JavaScript对象的继承
  97. 11.9 JavaScript组件开发
  98. 练习题
  99. 第12章 Ajax编程
  100. 12.1 XMLHttpRequest对象
  101. 12.2 使用Ajax实现瀑布流布局
  102. 12.3 使用Ajax开发留言本
  103. 12.4 使用JSONP解决Ajax跨域问题
  104. 练习题
  105. 第13章 JavaScript项目实战——云盘
  106. 13.1 项目结构
  107. 13.2 数据结构
  108. 13.3 视图渲染
  109. 13.4 三大区域视图切换
  110. 13.5 新建文件夹
  111. 13.6 文件夹的右键菜单
  112. 13.7 文件夹的选中及批量操作
  113. 练习题

FAQ

How does this book differ from Professional JavaScript for Web Developers (the "Red Book")?
Professional JavaScript for Web Developers is an authoritative and comprehensive language reference with extremely broad coverage. The Way of JavaScript Cultivation focuses more on how to apply core principles to modern, complex engineering practice and on cultivating a problem-solving mindset (the "Way"), making the two complementary rather than interchangeable.
Are the technology stack and examples in the book outdated?
Published in 2020, the book focuses on JavaScript's core mechanisms, design patterns, and engineering thinking, all of which have long-term value. The engineering practices it covers—modularization, testing, performance optimization—remain mainstream in development today. For specific build tools or framework choices, readers can extend their knowledge in line with the latest community developments.
Does this book help with learning frameworks like Vue/React?
Very much so. Frameworks are tools, and the ideas behind them (such as componentization, reactivity principles, and state management) are deeply rooted in JavaScript language features. The book's in-depth treatment of prototypes, closures, asynchrony, and modularization lets you understand how frameworks work under the hood, so you can use them more efficiently and profoundly rather than staying at the level of API calls.

Related on WeRead

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.

About the author

聂常红 Author

Nie Changhong is a Chinese author in the field of computer technology and front-end development. Publicly available information about her is limited, and details of her personal life remain unclear. Judging from the four works held in the library, her writing focuses on front-end development and programming design, covering the JavaScript language as well as the combined use of HTML, CSS, and JavaScript. Her representative works include JavaScript Cultivation Path and HTML+CSS+JavaScript Web Front-End Development Technology, along with Front-End HTML+CSS Cultivation Path (Video Synchronization + Live Streaming). These titles suggest that she attends to foundational Web front-end technologies and hands-on training, emphasizing the integration of language knowledge, page structure, and style design. Her works are often classified under programming design and computer science, and are suitable for readers who wish to study front-end development systematically.

刘伟 Author

Liu Wei is an author whose works span a wide range of fields, though limited public information is available about his personal background, including his dates of birth and death, nationality, and education. Judging from the 59 works included in the collection, his writing interests cover culture, social sciences, foreign literature, management, politics, and finance. Among his representative works, Twelve Lectures on Chinese Civilization and The Way of Vessels: A History of Chinese Tea Ware Civilization reflect his attention to traditional culture and the beauty of objects, while A Peking University Professor Talks with College Students: Liu Wei on Economics and Life shows his attempt to discuss life through an economic lens. The Politics of Ordinary People's Discourse: A Perspective on Peasants' Political Psychology in Transitional China and the China Economic Growth Report 2017 indicate his engagement with political psychology and macroeconomic research. He has also translated or written foreign literary works such as Murder in the Dark and All This, as well as books on sales. Overall, his writing is broad in scope and balances scholarship with readability.

More by the same author

Top rated in the same category