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

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
ISBN-13: 9781788628174
ISBN-10: 1788628179
裝訂格式: Paperback
總頁數: 348 頁





內容描述


Become a better web programmer by writing efficient and modular code by using various features of ECMAScriptKey FeaturesA 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 8Book DescriptionECMAScript 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 learnOrganize JavaScript programs across multiple files, using ES modulesBundle a set of modules into a single script file using WebpackCreate and work with promises using the Promise object and methodsCompose async functions to propagate and handle errorsImplement WebWorkers, SharedMemoryBuffers and Atomic functions to perform operations in parallelGo through different design patterns to create structures in order to solve common organizational and processing issuesUse and extend Map, Set, and Symbol to work with user defined classes and simulate data typesExplore the new array methods to limit the need for looping with arrays and other collectionsWho This Book Is ForIf 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.




相關書籍

Executing SOA: A Practical Guide for the Service-Oriented Architect

作者 Norbert Bieberstein Robert G. Laird Keith Jones Tilak Mitra

2018-03-29

大數據統計理論 (舊版: 專家親授:極深度大數據專用統計理論)

作者 楊旭

2018-03-29

Building Web Applications with .Net Core 2.1 and JavaScript: Leveraging Modern JavaScript Frameworks

作者 Japikse Philip Grossnicklaus Kevin Dewey Ben

2018-03-29