Reliable JavaScript: How to Code Safely in the World’s Most Dangerous Language

0
(0)

Reliable JavaScript: How to Code Safely in the World’s Most Dangerous Language
 

  • Author:Lawrence SpencerSeth Richards
  • Length: 528 pages
  • Edition: 1
  • Publisher: Wrox
  • Publication Date: 2015-07-13
  • ISBN-10: 1119028728
  • ISBN-13: 9781119028727
  • Sales Rank: #1302290 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Create more robust applications with a test-first approach to JavaScript Reliable JavaScript, How to Code Safely in the World’s Most Dangerous Language demonstrates how to create test-driven development for large-scale JavaScript applications that will stand the test of time and stay accurate through long-term use and maintenance. Taking a test-first approach to software architecture, this book walks you through several patterns and practices and explains what they are supposed to do by having you write unit tests. Write the code to pass the unit tests, so you not only develop your technique for structuring large-scale applications, but you also learn how to test your work. You’ll come away with hands-on practice that results in code that is correct from the start, and has the test coverage to ensure that it stays correct during subsequent maintenance. All code is provided both in the text and on the web, so you can immediately get started designing more complete, robust applications. JavaScript has graduated from field-validation scripts to full-scale applications, but many developers still approach their work as if they were writing simple scripts. If you’re one of those developers, this book is the solution you need to whip your code into shape and create JavaScript applications that work.

    • Write more concise and elegant code by thinking in JavaScript
    • Test the implementation and use of common design patterns
    • Master the use of advanced JavaScript features
    • Ensure your code’s conformance to your organization’s standards If you’re ready to step up your code and develop more complete software solutions, Reliable JavaScript is your essential resource.

    Table of Contents

    Part I: Laying A Solid Foundation
    Chapter 1 Practicing Skillful Software Engineering
    Chapter 2 Tooling Up
    Chapter 3 Constructing Reliable Objects

    Part II: Testing Pattern-Based Code
    Chapter 4 Reviewing The Benefits Of Patterns
    Chapter 5 Ensuring Correct Use Of The Callback Pattern
    Chapter 6 Ensuring Correct Use Of The Promise Pattern
    Chapter 7 Ensuring Correct Use Of Partial Function Application
    Chapter 8 Ensuring Correct Use Of The Memoization Pattern
    Chapter 9 Ensuring Correct Implementation Of The Singleton Pattern
    Chapter 10 Ensuring Correct Implementation Of The Factory Pattern
    Chapter 11 Ensuring Correct Implementation And Use Of The Sandbox Pattern
    Chapter 12 Ensuring Correct Implementation Of The Decorator Pattern
    Chapter 13 Ensuring Correct Implementation Of The Strategy Pattern
    Chapter 14 Ensuring Correct Implementation Of The Proxy Pattern
    Chapter 15 Ensuring Correct Implementation Of Chainable Methods

    Part III: Testing And Writing With Advanced Javascript Features
    Chapter 16 Conforming To Interfaces In An Interface-Free Language
    Chapter 17 Ensuring Correct Argument Types
    Chapter 18 Ensuring Correct Use Of Call, Apply, And Bind
    Chapter 19 Ensuring Correct Use Of Method-Borrowing
    Chapter 20 Ensuring Correct Use Of Mixins
    Chapter 21 Testing Advanced Program Architectures

    Part IV: Special Subjects In Testing
    Chapter 22 Testing Dom Access
    Chapter 23 Ensuring Conformance To Standards

    Part V: Summary
    Chapter 24 Summary Of The Principles Of Test-Driven Development
    Chapter 25 Summary Of Javascript Idioms In This Book

    中文:

    书名:Reliable JavaScript: How to Code Safely in the World’s Most Dangerous Language

    使用测试优先的方法创建更健壮的应用程序可靠的JavaScript,如何在世界上最危险的语言中安全编码演示了如何为经得起时间考验并在长期使用和维护中保持准确的大规模JavaScript应用程序创建测试驱动开发。采用测试优先的软件体系结构方法,本书向您介绍了几种模式和实践,并解释了它们应该通过编写单元测试来做些什么。编写通过单元测试的代码,这样您不仅可以开发构建大型应用程序的技术,还可以学习如何测试您的工作。您将亲身实践,从而生成从一开始就正确的代码,并拥有测试覆盖率以确保其在后续维护期间保持正确。所有代码都在文本和Web上提供,因此您可以立即开始设计更完整、更健壮的应用程序。JavaScript已经从字段验证脚本升级到全面的应用程序,但许多开发人员仍然像编写简单的脚本一样处理他们的工作。如果你是这些开发人员中的一员,这本书就是你需要的解决方案,你需要用它来完善你的代码,并创建能够工作的JavaScript应用程序。

    • Write more concise and elegant code by thinking in JavaScript
    • 测试常见设计模式的实现和使用
    • 掌握高级JavaScript功能的使用
    • 确保您的代码符合您组织的标准如果您已准备好加快您的代码并开发更完整的软件解决方案,可靠的Java脚本是您必不可少的资源。

    Table of Contents

    Part I: Laying A Solid Foundation
    第一章实践熟练的软件工程
    Chapter 2 Tooling Up
    Chapter 3 Constructing Reliable Objects

    Part II: Testing Pattern-Based Code
    Chapter 4 Reviewing The Benefits Of Patterns
    第5章确保正确使用回调模式
    第六章确保承诺模式的正确使用
    Chapter 7 Ensuring Correct Use Of Partial Function Application
    第八章确保正确使用记忆模式
    第9章确保单例模式的正确实现
    第十章确保工厂模式的正确实现
    第11章确保正确实现和使用沙盒模式
    第12章确保装饰者模式的正确实施
    第十三章确保正确实施战略模式
    Chapter 14 Ensuring Correct Implementation Of The Proxy Pattern
    Chapter 15 Ensuring Correct Implementation Of Chainable Methods

    Part III: Testing And Writing With Advanced Javascript Features
    第16章遵循接口自由语言中的接口
    Chapter 17 Ensuring Correct Argument Types
    第18章确保正确使用调用、应用和绑定
    第十九章确保正确使用方法–借用
    Chapter 20 Ensuring Correct Use Of Mixins
    第21章测试高级程序体系结构

    Part IV: Special Subjects In Testing
    Chapter 22 Testing Dom Access
    Chapter 23 Ensuring Conformance To Standards

    Part V: Summary
    第24章测试驱动开发原则概述
    第二十五章本书中的脚本习语摘要

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

    点击星号评分!

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

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

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册