Speaking JavaScript cover

Speaking JavaScript

No rating yet
Word count
516K words
Chapters
1
ISBN
9787115402608

Tags

Summary

This book is a guide to learning the JavaScript language by Axel Rauschmayer. The simplified Chinese edition is published by Posts & Telecom Press under license from O'Reilly Media, translated by Wang Yulin, Du Huan, Zhuang Tingting, and Zhang Zipeng. The book is about 516,000 Chinese characters and 413 pages. The book is divided into four parts. Part 1, "JavaScript Quick Start," uses one chapter to walk readers through the basics of programming: syntax, variables and assignment, primitive values and objects, booleans and truthiness, numbers, operators, strings, conditional and loop statements, functions (including hoisting, arguments, parameters, and optional parameters), exception handling, and more. Part 2, "Background," starts from outside the language: why choose JavaScript, how JavaScript was created, the ECMAScript standardization process, and important milestones in the language's history, helping readers understand why the language looks the way it does today. Part 3, "Deep Dive into JavaScript," is the main body of the book, unfolding concept by concept: syntax, values, operators, booleans, numbers, strings, statements, exception handling, functions, variable scope/environments and closures, objects and inheritance, arrays, regular expressions, Date, Math, JSON, standard global variables, character encoding, and the new features introduced by ECMAScript 5. Part 4, "Tips, Tools, and Libraries," turns to engineering practice: a metaprogramming style guide, debugging-related language mechanisms, subclassing built-in constructors, generating API documentation with JSDoc, common libraries, module systems and package managers, and other tools, with a final chapter offering a roadmap for further study. The book is structured for both reference and sequential reading, with dense code examples, and is suited to developers who want to move JavaScript from "can use it" to "understand how it works."

Editor's review

很多 JavaScript 书告诉你“应该这么写”,而 Axel Rauschmayer 这本书试图回答“为什么会是这样”。作者长期在 2ality.com 写技术博客、主编 JavaScript Weekly,对语言规范的演变脉络极为熟悉,因此第 2 部分讲语言诞生与 ECMAScript 标准化的几章,读起来像一部小型技术史,能解释掉不少“历史遗留的怪异行为”。 第 3 部分是全书的骨架,按值、运算符、函数、闭包、原型继承、数组、正则这些概念逐个拆解,每一块都讲得克制而清晰,没有为了炫技而堆砌偏门用法。对闭包、变量环境、原型链这些常被含糊带过的话题,书中给出了扎实的机制解释,适合反复回来查阅。第 4 部分则把视角从语言本身移到工程现场:调试、文档生成、模块与包管理、类库选型,帮助读者把知识落到项目里。 需要提醒的是,中文版出版于 2016 年,主线内容围绕 ECMAScript 5 展开,ES2015 之后的 async/await、模块语法、可选链等没有系统覆盖。把它当作语言地基与概念词典来读,配合现代文档补齐新特性,收益最大。

Who it's for

A good fit for

  • 已能写 JavaScript 代码、想弄懂闭包与原型链等底层机制的开发者
  • 准备系统梳理语言基础、需要一本可长期查阅参考书的前端工程师
  • 想了解 ECMAScript 标准化历程与语言设计取舍的技术爱好者
  • 计算机专业学生,学过一门编程语言并希望扩展 Web 开发知识

Not a good fit for

  • 完全零基础、需要从零构建编程思维的初学者
  • 只想快速上手 React、Vue 等框架而无意了解语言原理的读者
  • 专注 ES2015 之后新语法(async/await、可选链等)的进阶读者

Reading tips

  1. 先花一小时通读第 1 部分建立地图,再按需跳入第 3 部分对应章节。
  2. 读闭包与原型两章时,随手在控制台敲代码验证,比只看示例印象更深。
  3. 把第 4 部分当作工具手册,遇到调试、模块管理或文档生成问题时回来查。
  4. 读完每章后对照现代 ES 规范文档,标注书中未覆盖的新特性,形成自己的补丁笔记。

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. Speaking JavaScript

FAQ

这本书和《JavaScript 高级程序设计》有什么区别?
两本定位不同。《JavaScript 高级程序设计》覆盖面更广,包含浏览器与 DOM 等环境知识;本书更聚焦语言本身,着重语法、值、函数、闭包、原型继承等机制,并对 ECMAScript 标准化历史有专门章节。
书里的内容过时吗,还值得读吗?
中文版 2016 年出版,主线围绕 ECMAScript 5,未系统覆盖 ES2015 之后的模块语法、async/await 等。但语言的地基性概念并未改变,适合作为原理参考书,新语法再配合官方文档补充。
需要什么基础才能读懂?
建议至少会用一种编程语言写函数、循环和数组操作,并接触过一点 JavaScript。第 1 部分会快速回顾基础语法,但节奏偏快,完全零基础读者容易跟不上。
这本书更适合通读还是当工具书?
两种用法都行。想建立整体理解可以从第 1 部分顺序读到第 3 部分;日常开发中遇到闭包、原型、正则、编码等问题时,也可直接按章检索查阅。

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.

Top rated in the same category