Simplifying JavaScript

Writing Modern JavaScript with ES5, ES6, and Beyond

by: Joe Morgan

Published 2018-04-13
Internal code es6tips
Print status In Print
Pages 282
User level Beginner
Keywords es6, syntax, code standards, best practices, tips,
Related titles

HTML5 and CSS3 by Brian P. Hogan

Node.js 8 the Right Way by Practical, Server-Side JavaScript That Scales

ISBN 9781680502886
Other ISBN Channel epub: 9781680506051
Channel PDF: 9781680506068
Kindle: 9781680506037
Safari: 9781680506044
Kindle: 9781680506037
BISACs COM051260 COMPUTERS / Programming Languages / JavaScript
COM051230 COMPUTERS / Software Development & Engineering / General
COM051230 COMPUTERS / Software Development & Engineering / General

Highlight

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.

Description

It’s time to write JavaScript code that’s clean and expressive. Modern JavaScript is simpler and more 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 reusable classes, to patterns for architecting large applications creating applications that will last 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.

Contents and Extracts