Simplifying JavaScript: Writing Modern JavaScript with ES5, ES6, and Beyond
Joe Morgan
- 出版商: Pragmatic Bookshelf
- 出版日期: 2018-05-22
- 定價: $1,630
- 售價: 9.5 折 $1,549
- 語言: 英文
- 頁數: 284
- 裝訂: Paperback
- ISBN: 1680502883
- ISBN-13: 9781680502886
-
相關分類:
JavaScript
立即出貨 (庫存 < 3)
買這商品的人也買了...
-
$2,280Working Effectively with Legacy Code (Paperback)
-
$500$475 -
$1,700$1,700 -
$520$442 -
$450$356 -
$1,805Release It!: Design and Deploy Production-Ready Software, 2/e (Paperback)
-
$4,620$4,389 -
$403AWS 雲計算實戰 (Amazon Web Services in Action)
-
$1,980$1,881 -
$590$531 -
$600$474 -
$1,568Deep Learning with JavaScript: Neural Networks in Tensorflow.Js
-
$560$420 -
$1,990$1,891 -
$1,881Microservices Security in Action
-
$680$510 -
$2,328Parallel and High Performance Computing (Paperback)
-
$2,070Multithreaded JavaScript: Concurrency Beyond the Event Loop
-
$2,475Software Architecture: The Hard Parts: Modern Trade-Off Analyses for Distributed Architectures (Paperback)
-
$2,625$2,573 -
$2,052Mastering API Architecture: Design, Operate, and Evolve Api-Based Systems (Paperback)
-
$2,160$2,052 -
$1,758Functional Design: Principles, Patterns, and Practices (Paperback)
-
$750$585 -
$2,043$1,935
相關主題
商品描述
The best modern JavaScript is simple, readable, and predictable. Learn to write modern JavaScript not by memorizing a list of new syntax, but with practical examples of how syntax changes can make code more expressive. Starting from variable declarations that communicate intention clearly, see how modern principles can improve all parts of code. Incorporate ideas with curried functions, array methods, classes, and more to create code that does more with less while yielding fewer bugs.
It's time to write JavaScript code that's clean and exprssive. Modern JavaScript is more simple, predictable, and readable than ever. Discover how to write better code with clear examples using principles that show how updated syntax can make code better with fewer bugs.
Starting from the ground up, learn new syntax (or how to reuse older syntax) to transform code from clunky bug-susceptible scripts to clear and elegant programs that are easy to read and easy to extend.
Create a foundation for readable code with simple variable declarations that reduce side effects and subtle bugs. Select collections with clear goals instead of defaulting to objects or arrays. See how to simplify iterations from complex loops to single line array methods. Master techniques for writing flexible and solid code ranging from high-order functions, to reusableclasses, to patterns for architecting large applications creating applications that will last while through rounds of refactoring and changing requirements.
The best part is there's no need to read this book straight through. Jump around and incorporate new functionality at will. Most importantly, understand not just what the new syntax is, but when and how to use it. Start writing better code from the first page.
What You Need:
For the best experience, have the latest version of Node installed (at least version 7). You can test most examples in the console of Chrome or other modern web browser. If you'd like to run the tests, you'll also need to install the latest version of Node Package Manager (npm).
商品描述(中文翻譯)
現代最好的 JavaScript 是簡單、易讀且可預測的。學習撰寫現代 JavaScript 不是透過背誦一長串新語法,而是透過實際範例來了解語法變化如何使程式碼更具表達力。從清晰傳達意圖的變數宣告開始,看看現代原則如何改善程式碼的各個部分。運用柯里化函式、陣列方法、類別等概念,創造出更少代碼卻能做更多事情且產生較少錯誤的程式碼。
現在是時候撰寫乾淨且具表達力的 JavaScript 程式碼了。現代 JavaScript 比以往更簡單、可預測且易讀。透過清晰的範例,發現如何使用原則來撰寫更好的程式碼,並了解更新的語法如何使程式碼更好且錯誤更少。
從基礎開始,學習新語法(或如何重複使用舊語法),將程式碼從笨重且容易出錯的腳本轉變為清晰優雅、易於閱讀和擴展的程式。透過簡單的變數宣告建立可讀性高的程式碼基礎,減少副作用和微妙的錯誤。選擇具有明確目標的集合,而不是預設使用物件或陣列。看看如何將複雜迴圈簡化為單行陣列方法,熟練撰寫靈活且堅固的程式碼技巧,從高階函式到可重複使用的類別,以及用於架構大型應用程式的模式,創建能夠經受重構和不斷變化需求的應用程式。
最棒的是,您不需要從頭到尾閱讀本書。隨意跳躍並隨時引入新功能。最重要的是,不僅要了解新語法是什麼,還要了解何時以及如何使用它。從第一頁開始撰寫更好的程式碼。
所需工具:
為了獲得最佳體驗,請安裝最新版本的 Node(至少版本 7)。您可以在 Chrome 或其他現代瀏覽器的控制台中測試大多數範例。如果您想要運行測試,您還需要安裝最新版本的 Node Package Manager(npm)。