书评:Pro JavaScript设计模式

NOTE: This is the first book review to be featured here. The idea is that I will frequently review web-related books to hopefully help give you an idea of whether or not a book is right for you. The books reviewed will all be somehow related to web development or design so you will never hear me tell you how much I enjoyed Stephen King’s Dark Tower series or Napoleon’s Pyramids by William Dietrich….except for right now of course.

注意:这是第一个在这里介绍的书评。 我的想法是,我将经常复习与网络相关的书籍,以期帮助您了解一本书是否适合您。 所复习的书籍都将以某种方式与Web开发或设计相关,因此您永远不会听到我告诉您我对William Dietrich的Stephen King的Dark Tower系列或Napoleon的金字塔有多喜欢。当然,除了现在。

谁写的? (Who Wrote It?)

Pro JavaScript Design Patterns is written by Ross Harmes and Dustin Diaz. Ross is a front-end engineer from Yahoo! and blogs (albeit not for awhile) about random tech topics at techfoolery.com. Dustin works for Google as a user interface engineer. You can find Dustin’s musings about web development topics at dustindiaz.com. This is the first book by either author.

Pro JavaScript设计模式由Ross Harmes和Dustin Diaz撰写。 Ross是Yahoo!的前端工程师。 以及在techfoolery.com上有关随机技术主题的博客(尽管有一段时间了)。 Dustin是Google的用户界面工程师。 您可以在ustindiaz.com上找到Dustin关于Web开发主题的想法 。 这是两位作者的第一本书。

涵盖了什么? (What’s covered?)

Pro Javascript Design Patterns is about…well, applying design patterns in Javascript of course. Design patterns are reusable solutions to specific, common problems that occur in development. Design patterns are more popular in software engineering, but as web applications become larger and more robust, design patterns are starting to become a bit more well known in the web development world.

Pro Javascript Design Patterns是关于……嗯,当然可以在Javascript中应用设计模式。 设计模式是可重复使用的解决方案,用于解决开发中出现的特定常见问题。 设计模式在软件工程中更受欢迎,但是随着Web应用程序变得越来越大,功能越来越强大,设计模式在Web开发领域开始变得越来越知名。

Dustin and Ross do a great job of explaining different design patterns and showing how to apply them in the world of Javascript. The book starts off by walking you through some object-oriented principles as they relate to Javascript. There are sections on such advanced topics like interfaces, encapsulation, inheritance and chaining. The second part of the book dives right into design patterns. For each pattern, you get to see how to implement it in Javascript, when to implement it, and the benefits you will see. Design patterns can also create difficulties if used inappropriately, so Ross and Dustin take a look at the disadvantages of each pattern so that you can accurately determine whether or not to use it in your applications.

Dustin和Ross在解释不同的设计模式并展示如何将其应用于Javascript方面做得很出色。 本书首先介绍与Javascript有关的一些面向对象的原理。 关于接口,封装,继承和链接之类的高级主题,有几节。 本书的第二部分深入探讨了设计模式。 对于每种模式,您都将了解如何在Javascript中实现它,何时实现它以及将会看到的好处。 设计模式如果使用不当也会造成困难,因此Ross和Dustin会查看每种模式的缺点,以便您可以准确确定是否在应用程序中使用它。

我应该读吗? (Should I Read It?)

The book definitely holds value for any person working with Javascript and front-end development. The ideas laid out in the book can help anyone working with the language to create higher-quality, efficient code. Particularly developers who work with large scale Javascript applications will benefit from the book, as that is what design patterns seem to be best suited for.

对于任何使用Javascript和前端开发的人来说,这本书绝对具有价值。 本书中提出的想法可以帮助使用该语言的任何人创建高质量,高效的代码。 特别是那些使用大型Javascript应用程序的开发人员将从这本书中受益,因为这似乎是最适合的设计模式。

Make no mistake, the book’s title starts with the word ‘Pro’ for a reason…this is not a book intended for beginners. It is a very concisely written book that doesn’t take a lot of time setting the tone…the authors dive right into advanced concepts and code. If you are just getting rolling with Javascript or you don’t have a good grasp of object-oriented programming in Javascript, then you should probably pick up another book and come back to this later. On the other hand, if you are familiar with object-oriented programming in another language, you may find the book still manageable. That’s part of the beauty of design patterns…the theory works regardless of the language…it’s the syntax and implementation that can differ.

没错,这本书的书名以单词“ Pro”开头是有原因的……这不是面向初学者的书。 这是一本非常简洁的书,不需要花费很多时间来定下基调……作者们全神贯注于高级概念和代码。 如果您只是开始使用Javascript,或者您不太了解Javascript中的面向对象的编程,那么您可能应该再选一本书,然后再回到本书。 另一方面,如果您熟悉另一种语言的面向对象编程,那么您可能会发现这本书仍然可以管理。 这就是设计模式之美的一部分……该理论与语言无关,……语法和实现可能有所不同。

最终裁决 (Final Verdict)

All in all, I really enjoyed the book. It can take awhile to work your way through it (this is not a bed-stand book), but it is definitely worth it as the concepts addressed are invaluable to creating quality code. For anyone doubting the power of Javascript, this book is a real eye-opener. You will find that Javascript’s flexibility offers a lot of possibilities and by using it, along with industry-recognized design patterns, you can develop scripts that are both easy to communicate and easy to maintain.

总而言之,我真的很喜欢这本书。 可能需要一段时间才能完成工作(这不是床头书),但是绝对值得,因为所解决的概念对于创建高质量代码非常重要。 对于任何怀疑Javascript功能的人,这本书都是真正的大开眼界。 您会发现Javascript的灵活性提供了很多可能性,并且通过使用它以及行业公认的设计模式,您可以开发易于通信和易于维护的脚本。

太好了……我在哪里可以得到副本? (Great…Where Do I Get A Copy?)

翻译自: https://timkadlec.com/2008/04/book-review-pro-javascript-design-patterns/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值