Pro JavaScript Design Patterns
暫譯: 專業 JavaScript 設計模式

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 中實現和利用多種設計模式,包括組合模式、裝飾者模式、外觀模式、適配器模式等。

每一章都充滿了如何最佳使用設計模式的實際範例,以及撰寫更好程式碼的專家建議,還有需要注意的事項。在這個過程中,您將發現如何創建自己的庫和 API,以便進行更高效的編碼。

- 掌握物件導向程式設計的基本概念,並將其應用於設計模式。
- 將設計模式應用於啟動您的 JavaScript 開發。
- 實作幾個實際範例。

您將學到的內容:
- 如何在 JavaScript 中應用物件導向程式設計技術。
- 如何利用繼承、介面、封裝和資訊隱藏來啟動您的 JavaScript 開發。
- 如何在您的 JavaScript 專案中實現多種設計模式,包括工廠模式、外觀模式、橋接模式、組合模式、適配器模式、裝飾者模式、享元模式、代理模式、命令模式、觀察者模式和責任鏈模式。
- 如何使您的程式碼在團隊環境中更易於管理。