找回密码
 注册
搜索
热搜: java php web
查看: 566|回复: 0

Design Patterns in Ruby

[复制链接]
发表于 2010-1-3 08:40:18 | 显示全部楼层 |阅读模式


作者:Russ Olsen
出版日期:December 20, 2007
出版社:Addison Wesley
页数:384
ISBN:ISBN-10: 0321490452 ISBN-13: 978-0321490452
文件格式:PDF

Praise for Design Patterns in Ruby
Design Patterns in Ruby documents smartways to resolve many problems that Ruby developers commonly encounter.Russ Olsen has done a great job of selecting classic patterns andaugmenting these with newer patterns that have special relevance forRuby. He clearly explains each idea, making a wealth of experienceavailable to Ruby developers for their own daily work.”
—Steve Metsker, Managing Consultant with Dominion Digital, Inc.
“This book provides a great demonstration of the key ‘Gang of Four’design patterns without resorting to overly technical explanations.Written in a precise, yet almost informal style, this book coversenough ground that even those without prior exposure to design patternswill soon feel confident applying them using Ruby. Olsen has done agreat job to make a book about a classically ‘dry’ subject into such anengaging and even occasionally humorous read.”
—Peter Cooper
“This book renewed my interest in understanding patterns after adecade of good intentions. Russ picked the most useful patterns forRuby and introduced them in a straightforward and logical manner, goingbeyond the GoF’s patterns. This book has improved my use of Ruby, andencouraged me to blow off the dust covering the GoF book.”
—Mike Stok
Design Patterns in Ruby is a great wayfor programmers from statically typed objectoriented languages to learnhow design patterns appear in a more dynamic, flexible language likeRuby.”
—Rob Sanheim, Ruby Ninja, Relevance
Most design pattern books are based on C++ and Java. But Ruby isdifferent—and the language’s unique qualities make design patternseasier to implement and use. In this book, Russ Olsen demonstrates howto combine Ruby’s power and elegance with patterns, and write moresophisticated, effective software with far fewer lines of code.
After reviewing the history, concepts, and goals of design patterns,Olsen offers a quick tour of the Ruby language—enough to allow anyexperienced software developer to immediately utilize patterns withRuby. The book especially calls attention to Ruby features thatsimplify the use of patterns, including dynamic typing, code closures,and “mixins” for easier code reuse.
Fourteen of the classic “Gang of Four” patterns are considered fromthe Ruby point of view, explaining what problems each pattern solves,discussing whether traditional implementations make sense in the Rubyenvironment, and introducing Ruby-specific improvements. You’lldiscover opportunities to implement patterns in just one or two linesof code, instead of the endlessly repeated boilerplate thatconventional languages often require.
Design Patterns in Ruby also identifiesinnovative new patterns that have emerged from the Ruby community.These include ways to create custom objects with metaprogramming, aswell as the ambitious Rails-based “Convention Over Configuration”pattern, designed to help integrate entire applications and frameworks.
Engaging, practical, and accessible, Design Patterns in Ruby will help you build better software while making your Ruby programming experience more rewarding.
About the Author
Russ Olsen has been building software for more thantwenty-five years. He has led projects through several generations ofprogramming technologies, from FORTRAN to C to C++ to Java, and nowRuby. He has been using and teaching Ruby since 2002. Olsen writes thepopular technology blog Technology As If People Mattered(http://www.russolsen.com).

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|软晨网(RuanChen.com)

GMT+8, 2024-11-22 18:34

Powered by Discuz! X3.5

Copyright © 2001-2023 Tencent Cloud.

快速回复 返回顶部 返回列表