ECMAScript 8 Cookbook: Over 70 recipes to help you improve your coding skills and solving practical JavaScript problems
暫譯: ECMAScript 8 食譜:超過 70 個食譜幫助你提升編程技能及解決實際 JavaScript 問題
Ross Harrison
- 出版商: Packt Publishing
- 出版日期: 2018-03-29
- 定價: $1,380
- 售價: 6.0 折 $828
- 語言: 英文
- 頁數: 348
- 裝訂: Paperback
- ISBN: 1788628179
- ISBN-13: 9781788628174
-
相關分類:
JavaScript
立即出貨 (庫存=1)
買這商品的人也買了...
-
$650$507 -
$450$356 -
$580$458 -
$500$425 -
$380$300 -
$580$458 -
$580$452 -
$500$390 -
$520$411 -
$520$411 -
$1,280$1,088
商品描述
Become a better web programmer by writing efficient and modular code by using various features of ECMAScript
Key Features
- A recipe based guide to help you become a better web programmer and write efficient and modular code.
- Learn to write asynchronous code and improve the speed of your web applications.
- Discover the power of writing object-oriented Web JavaScript code using ES 8
Book Description
ECMAScript is a specification that JavaScript, TypeScript and many other implement. Learning to write beautiful, efficient and modular code across all this languages requires good understanding of the concepts, features, and APIs of ECMAScript. The recent releases of ECMAScript have transformed JavaScript by introducing new collections types, functional APIs, OOP, and other syntactic updates.
This book provides that perfect learning solution to help you become an efficient programmer across multiple disciplines. It follows a modular approach which includes independent recipes covering different feature sets and specifications of ECMAScript 2017/ES8. You will start with organizing your JavaScript applications, as well as delivering those applications to modern and legacy system. Next, you will go through features that were added to enhance asynchronous and parallel operations which includes ES8 async, SharedArrayBuffers, and Atomic operations. You will see how ES8 async functions help simplify asynchronous operations and remove boilerplate from ES6 Promise usage. Further you, will go through SharedArrayBuffers that allow WebWorkers to share data directly, and Atomic operations help coordinate behavior across the threads. Lastly, you will work with OOP and Collections, followed by new functions and methods on the built in Object and Array types that make common operations more manageable, and less error prone. This will be followed by classes and inheritance that make it easier to build more sophisticated and expressive program structures. In the end, you will also go through Sets, Maps, and Symbols which are the new types introduced that add new behaviors allowing you to create simple and powerful modules.
By the end of the book, you will be able to use the new features in ES8 that allow you to produce more efficient, expressive, and simpler programs.
What you will learn
- Organize JavaScript programs across multiple files, using ES modules
- Bundle a set of modules into a single script file using Webpack
- Create and work with promises using the Promise object and methods
- Compose async functions to propagate and handle errors
- Implement WebWorkers, SharedMemoryBuffers and Atomic functions to perform operations in parallel
- Go through different design patterns to create structures in order to solve common organizational and processing issues
- Use and extend Map, Set, and Symbol to work with user defined classes and simulate data types
- Explore the new array methods to limit the need for looping with arrays and other collections
Who This Book Is For
If you are a JavaScript developer with basic development, and now want to learn about the latest features in order to develop better client-side programs with JavaScript, then this book is for you.
商品描述(中文翻譯)
透過使用 ECMAScript 的各種特性,撰寫高效且模組化的程式碼,成為更優秀的網頁程式設計師
主要特點
- 一本基於食譜的指南,幫助你成為更優秀的網頁程式設計師,撰寫高效且模組化的程式碼。
- 學習撰寫非同步程式碼,提升你的網頁應用程式速度。
- 發現使用 ES 8 撰寫物件導向的 Web JavaScript 程式碼的威力。
書籍描述
ECMAScript 是 JavaScript、TypeScript 及許多其他實作的規範。學習在這些語言中撰寫美觀、高效且模組化的程式碼需要對 ECMAScript 的概念、特性和 API 有良好的理解。最近的 ECMAScript 發布透過引入新的集合類型、函數 API、物件導向程式設計 (OOP) 及其他語法更新,徹底改變了 JavaScript。
本書提供了完美的學習解決方案,幫助你在多個領域成為高效的程式設計師。它採用模組化的方法,包括涵蓋 ECMAScript 2017/ES8 不同特性集和規範的獨立食譜。你將從組織你的 JavaScript 應用程式開始,並將這些應用程式交付給現代和舊版系統。接下來,你將了解為增強非同步和並行操作而新增的特性,包括 ES8 的非同步、SharedArrayBuffers 和原子操作。你將看到 ES8 的非同步函數如何簡化非同步操作,並消除 ES6 Promise 使用中的樣板程式碼。此外,你將學習 SharedArrayBuffers,這使得 WebWorkers 能夠直接共享數據,而原子操作則幫助協調執行緒之間的行為。最後,你將學習物件導向程式設計 (OOP) 和集合,接著是內建 Object 和 Array 類型上的新函數和方法,使常見操作更易於管理且不易出錯。接下來將介紹類別和繼承,使得構建更複雜和表達力更強的程式結構變得更容易。最後,你還將學習 Sets、Maps 和 Symbols,這些是新增的類型,增加了新的行為,讓你能夠創建簡單而強大的模組。
在本書結束時,你將能夠使用 ES8 的新特性,產生更高效、更具表達力且更簡單的程式。
你將學到什麼
- 使用 ES 模組組織跨多個檔案的 JavaScript 程式
- 使用 Webpack 將一組模組打包成單一腳本檔案
- 使用 Promise 物件和方法創建和處理承諾
- 組合非同步函數以傳播和處理錯誤
- 實作 WebWorkers、SharedMemoryBuffers 和原子函數以進行並行操作
- 了解不同的設計模式以創建結構,解決常見的組織和處理問題
- 使用和擴展 Map、Set 和 Symbol,以處理用戶定義的類別並模擬數據類型
- 探索新的陣列方法,以減少對陣列和其他集合的迴圈需求
本書適合誰
如果你是一位具有基本開發能力的 JavaScript 開發者,現在想學習最新特性以開發更好的客戶端程式,這本書就是為你而寫。