Pro JavaScript Design Patterns

Dustin Diaz, Ross Harmes

  • 出版商: Apress
  • 出版日期: 2007-12-17
  • 售價: $2,300
  • 貴賓價: 9.5$2,185
  • 語言: 英文
  • 頁數: 269
  • 裝訂: Paperback
  • ISBN: 159059908X
  • ISBN-13: 9781590599082
  • 相關分類: JavaScriptDesign Pattern
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

Description 

As a web developer, you’ll already know that JavaScript™ is a powerful language, allowing you to add an impressive array of dynamic functionality to otherwise static web sites. But there is more power waiting to be unlocked--JavaScript is capable of full object-oriented capabilities, and by applying OOP principles, best practices, and design patterns to your code, you can make it more powerful, more efficient, and easier to work with alone or as part of a team.

With Pro JavaScript Design Patterns, you’ll start with the basics of object-oriented programming in JavaScript applicable to design patterns, including making JavaScript more expressive, inheritance, encapsulation, information hiding, and more. With that covered, you can kick-start your JavaScript development in the second part of the book, where you’ll find detail on how to implement and take advantage of several design patterns in JavaScript, including composites, decorators, façades, adapters, and many more.

Each chapter is packed with real-world examples of how the design patterns are best used and expert advice on writing better code, as well as what to watch out for. Along the way you’ll discover how to create your own libraries and APIs for even more efficient coding.

  • Master the basics of object-oriented programming in JavaScript, as they apply to design patterns.
  • Apply design patterns to your kick-start your JavaScript development.
  • Work through several real-world examples.

What you’ll learn

  • How to apply object-oriented programming techniques in JavaScript
  • How to take advantage of inheritance, interfaces, and encapsulation and information hiding to kick-start your JavaScript development
  • How to implement several design patterns in your JavaScript projects, including factory, façade, bridge, composite, adapter, decorator, flyweight, proxy, command, observer, and chain of responsibility
  • How to make your code easier to manage in a team environment

 


商品描述(中文翻譯)

作為一名網頁開發者,您已經知道JavaScript是一種強大的語言,可以為靜態網站添加令人印象深刻的動態功能。但是,JavaScript還具有更多等待發掘的潛力-它具有完整的面向對象能力,通過應用面向對象編程(OOP)原則、最佳實踐和設計模式,您可以使其更加強大、高效且易於獨立工作或團隊合作。

在《Pro JavaScript Design Patterns》中,您將從適用於設計模式的JavaScript面向對象編程基礎開始,包括使JavaScript更具表達性、繼承、封裝、信息隱藏等。掌握這些基礎後,您可以在本書的第二部分中開始JavaScript開發,其中詳細介紹了如何實施和利用多種JavaScript設計模式。