Pro JavaScript Design Patterns - Dustin Diaz, Ross Harmes

Pro JavaScript Design Patterns

Dustin Diaz, Ross Harmes

出版社

Apress

出版时间

2007-12-16

ISBN

9781590599082

评分

★★★★★
书籍介绍
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.
作者简介
Dustin Diaz is a user interface engineer who enjoys writing JavaScript, CSS, and HTML, as well as making interactive and usable interfaces to create passionate users. Ross Harmes works as a frontend engineer in Sunnyvale, California, where he creates modular and reusable JavaScript components for Yahoo! Small Business.
用户评论
:无
看到过的OOP最好实现的一本书,讲的很详细,层层深入,至于设计模式,个人感觉从JS入手不是件好事,除非本来就对设计模式化有很深的理解,不过本书还是很值得一看的,会学到很多东西,目前感觉讲的最好的两本javascript书之一,另一本是周爱民的大作,及其推荐。
好书~
印象最深的是鸭子定律和mixin模式。
相当不错的一本书,虽然废话有点多,但好处是条理清晰
不管是语言特性和设计模式都讲解得深入。的确是Pro
JS开发进阶必读,可以基本了解jQuery之类的framework的实现
收藏