Simplifying JavaScript: Writing Modern JavaScript with ES5, ES6, and Beyond

0
(0)

Simplifying JavaScript: Writing Modern JavaScript with ES5, ES6, and Beyond
 

  • Author:Joe Morgan
  • Length: 284 pages
  • Edition: 1
  • Publisher: Pragmatic Bookshelf
  • Publication Date: 2018-04-27
  • ISBN-10: 1680502883
  • ISBN-13: 9781680502886
  • Sales Rank: #362722 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    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 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 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).

    Table of Contents

    Chapter 1. Signal Intention With Variable Assignment
    Chapter 2. Manage Data Collections With Arrays
    Chapter 3. Maximize Code Clarity With Special Collections
    Chapter 4. Write Clear Conditionals
    Chapter 5. Simplify Loops
    Chapter 6. Clean Up Parameters And Return Statements
    Chapter 7. Build Flexible Functions
    Chapter 8. Keep Interfaces Clear With Classes
    Chapter 9. Access External Data
    Chapter 10. Gather Related Files With Component Architecture

    中文:

    书名:Simplifying JavaScript: Writing Modern JavaScript with ES5, ES6, and Beyond

    最好的现代JavaScript是简单、可读和可预测的。学习编写现代JavaScript不是通过记忆一系列新语法,而是通过实际示例说明语法更改如何使代码更具表现力。从清楚地传达意图的变量声明开始,看看现代原则如何改进代码的所有部分。将想法与Currate函数、数组方法、类等结合起来,以创建用更少的错误实现事半功倍的代码。

    现在是时候编写干净和可表达的JavaScript代码了。现代的JavaScript比以往任何时候都更简单、更可预测和更具可读性。了解如何使用清晰的示例编写更好的代码,这些原则展示了更新的语法如何以更少的错误使代码更好。

    从头开始,学习新的语法(或如何重用旧的语法),以将代码从笨重的易受错误影响的脚本转换为易于阅读和易于扩展的清晰而优雅的程序。

    使用简单的变量声明创建可读代码的基础,以减少副作用和细微的错误。选择目标明确的集合,而不是默认使用对象或数组。了解如何简化从复杂循环到单行数组方法的迭代。掌握编写灵活可靠的代码的技术,从高阶函数到可重用类,再到构建大型应用程序的模式,这些应用程序创建的应用程序将在几轮重构和不断变化的需求中持续存在。

    最棒的是,这本书没有必要从头到尾读完。随心所欲地跳跃并加入新的功能。最重要的是,不仅要了解新语法是什么,还要了解何时以及如何使用它。从第一页开始编写更好的代码。

    What You Need:

    为了获得最佳体验,请安装最新版本的Node(至少是版本7)。你可以在Chrome的控制台或其他现代网络浏览器上测试大多数示例。如果您想运行测试,您还需要安装最新版本的Node Package Manager(NPM)。

    Table of Contents

    第1章.变量赋值的信号意图
    第2章:使用阵列管理数据收集
    第三章:使用特殊集合最大限度地提高代码清晰度
    第四章:写出明确的条件
    Chapter 5. Simplify Loops
    Chapter 6. Clean Up Parameters And Return Statements
    第7章.构建灵活的功能
    第8章:保持与类的接口清晰
    第9章.访问外部数据
    第10章:使用组件体系结构收集相关文件

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册