JavaScript Patterns: Build Better Applications with Coding and Design Patterns

0
(0)

JavaScript Patterns: Build Better Applications with Coding and Design Patterns
 

  • Author:Stoyan Stefanov
  • Length: 236 pages
  • Edition: 1
  • Publisher: O’Reilly Media
  • Publication Date: 2010-10-01
  • ISBN-10: 0596806752
  • ISBN-13: 9780596806750
  • Sales Rank: #111881 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    What’s the best approach for developing an application with JavaScript? This book helps you answer that question with numerous JavaScript coding patterns and best practices. If you’re an experienced developer looking to solve problems related to objects, functions, inheritance, and other language-specific categories, the abstractions and code templates in this guide are ideal—whether you’re using JavaScript to write a client-side, server-side, or desktop application.

    Written by JavaScript expert Stoyan Stefanov—Senior Yahoo! Technical and architect of YSlow 2.0, the web page performance optimization tool—JavaScript Patterns includes practical advice for implementing each pattern discussed, along with several hands-on examples. You’ll also learn about anti-patterns: common programming approaches that cause more problems than they solve.

    • Explore useful habits for writing high-quality JavaScript code, such as avoiding globals, using single var declarations, and more
    • Learn why literal notation patterns are simpler alternatives to constructor functions
    • Discover different ways to define a function in JavaScript
    • Create objects that go beyond the basic patterns of using object literals and constructor functions
    • Learn the options available for code reuse and inheritance in JavaScript
    • Study sample JavaScript approaches to common design patterns such as Singleton, Factory, Decorator, and more
    • Examine patterns that apply specifically to the client-side browser environment

    Table of Contents

    Chapter 1. Introduction
    Chapter 2. Essentials
    Chapter 3. Literals and Constructors
    Chapter 4. Functions
    Chapter 5. Object Creation Patterns
    Chapter 6. Code Reuse Patterns
    Chapter 7. Design Patterns
    Chapter 8. DOM and Browser Patterns

    中文:

    书名:JavaScript模式:使用编码和设计模式构建更好的应用程序

    用JavaScript开发应用程序的最佳方法是什么?这本书通过大量的JavaScript编码模式和最佳实践帮助您回答这个问题。如果您是一名经验丰富的开发人员,希望解决与对象、函数、继承和其他语言特定类别相关的问题,那么本指南中的抽象和代码模板都是理想的选择–无论您是在使用JavaScript编写客户端、服务器端还是桌面应用程序。

    由JavaScript专家Stoyan Stefan ov编写-高级雅虎!网页性能优化工具YSlow 2.0的技术和架构师-JavaScrip模式 包括实现所讨论的每个模式的实用建议,以及几个实际操作的示例。您还将了解反模式:导致问题多于解决问题的常见编程方法。

    • 探索编写高质量的JavaScript代码的有用习惯,例如避免全局变量、使用单个变量声明等
    • 了解为什么文字表示法模式是构造函数更简单的替代方案
    • 了解在JavaScript中定义函数的不同方法
    • 创建超越使用对象文字和构造函数的基本模式的对象
    • 了解在JavaScript中可用于代码重用和继承的选项
    • 研究常见设计模式(如Singleton、Factory、Decorator等)的样例JavaScript方法
    • 检查专门应用于客户端浏览器环境的模式

    目录表

    第二章第一章导言
    第二章:基本要领
    Chapter 3. Literals and Constructors
    第二章第四章政府职能
    第五章对象创建模式
    第六章代码重用模式
    第七章设计模式
    第8章:DOM和浏览器模式

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

    点击星号评分!

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

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

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册