ECMAScript 8 Cookbook: Over 70 recipes to help you improve your coding skills and solving practical JavaScript problems

Ross Harrison

  • 出版商: Packt Publishing
  • 出版日期: 2018-03-29
  • 定價: $1,380
  • 售價: 6.0$828
  • 語言: 英文
  • 頁數: 348
  • 裝訂: Paperback
  • ISBN: 1788628179
  • ISBN-13: 9781788628174
  • 相關分類: JavaScript
  • 立即出貨 (庫存=1)



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.