Effective JavaScript: 68 Specific Ways to Harness the Power of JavaScript (Paperback)

David Herman

買這商品的人也買了...

相關主題

商品描述

“It’s uncommon to have a programming language wonk who can speak in such comfortable and friendly language as David does. His walk through the syntax and semantics of JavaScript is both charming and hugely insightful; reminders of gotchas complement realistic use cases, paced at a comfortable curve. You’ll find when you finish the book that you’ve gained a strong and comprehensive sense of mastery.”

—Paul Irish, developer advocate, Google Chrome

 

“This is not a book for those looking for shortcuts; rather it is hard-won experience distilled into a guided tour. It’s one of the few books on JS that I’ll recommend without hesitation.”

—Alex Russell, TC39 member, software engineer, Google

 

In order to truly master JavaScript, you need to learn how to work effectively with the language’s flexible, expressive features and how to avoid its pitfalls. No matter how long you’ve been writing JavaScript code, Effective JavaScript will help deepen your understanding of this powerful language, so you can build more predictable, reliable, and maintainable programs.

 

Author David Herman, with his years of experience on Ecma’s JavaScript standardization committee, illuminates the language’s inner workings as never before—helping you take full advantage of JavaScript’s expressiveness. Reflecting the latest versions of the JavaScript standard, the book offers well-proven techniques and best practices you’ll rely on for years to come.

 

Effective JavaScript is organized around 68 proven approaches for writing better JavaScript, backed by concrete examples. You’ll learn how to choose the right programming style for each project, manage unanticipated problems, and work more successfully with every facet of JavaScript programming from data structures to concurrency. Key features include

  • Better ways to use prototype-based object-oriented programming
  • Subtleties and solutions for working with arrays and dictionary objects
  • Precise and practical explanations of JavaScript’s functions and variable scoping semantics
  • Useful JavaScript programming patterns and idioms, such as options objects and method chaining
  • In-depth guidance on using JavaScript’s unique “run-to-completion” approach to concurrency

 

商品描述(中文翻譯)

「David以舒適友善的語言能力,罕見地將程式語言的專業知識傳達出來。他對JavaScript的語法和語義的解說既迷人又深入,提醒了我們需要注意的地方,同時結合了實際使用案例,節奏適中。當你讀完這本書後,你會發現自己已經獲得了強大而全面的掌握能力。」
- Paul Irish, Google Chrome開發者倡導者

「這不是一本為尋求捷徑的人而寫的書,而是一本將寶貴經驗融入指導之中的書。這是我唯一會毫不猶豫推薦的JavaScript書籍之一。」
- Alex Russell, TC39成員,Google軟體工程師

要真正掌握JavaScript,你需要學習如何有效地使用這個語言的靈活和表達性特點,以及如何避免其中的陷阱。無論你寫JavaScript程式碼多久了,《Effective JavaScript》都能幫助你更深入地理解這個強大的語言,從而建立更可預測、可靠和易於維護的程式。

作者David Herman在Ecma的JavaScript標準化委員會上的多年經驗,讓他能夠以前所未有的方式闡明這個語言的內部運作,幫助你充分利用JavaScript的表達能力。本書反映了JavaScript標準的最新版本,提供了經過驗證的技巧和最佳實踐,這些將成為你多年來的依賴。

《Effective JavaScript》圍繞著68種寫更好JavaScript的方法進行組織,並提供具體的例子作為支持。你將學習如何為每個項目選擇合適的編程風格,處理意外問題,並更成功地使用JavaScript編程的各個方面,從數據結構到並發。主要特點包括:

- 更好地使用基於原型的面向對象編程的方法
- 處理數組和字典對象的微妙問題和解決方案
- 對JavaScript的函數和變量作用域語義進行精確而實用的解釋
- 有用的JavaScript編程模式和慣用語法,例如選項對象和方法鏈式調用
- 深入指導如何使用JavaScript獨特的「執行到完成」的並發方法