Design Patterns in Ruby (Hardcover)
暫譯: Ruby 設計模式 (精裝版)

Russ Olsen

  • 出版商: Addison Wesley
  • 出版日期: 2007-12-01
  • 售價: $2,290
  • 貴賓價: 9.5$2,176
  • 語言: 英文
  • 頁數: 384
  • 裝訂: Hardcover
  • ISBN: 0321490452
  • ISBN-13: 9780321490452
  • 相關分類: RubyDesign Pattern
  • 海外代購書籍(需單獨結帳)

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

商品描述

Praise for Design Patterns in Ruby

"Design Patterns in Ruby documents smart ways to resolve many problems that Ruby developers commonly encounter. Russ Olsen has done a great job of selecting classic patterns and augmenting these with newer patterns that have special relevance for Ruby. He clearly explains each idea, making a wealth of experience available 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 covers enough ground that even those without prior exposure to design patterns will soon feel confident applying them using Ruby. Olsen has done a great job to make a book about a classically 'dry' subject into such an engaging and even occasionally humorous read."

—Peter Cooper

"This book renewed my interest in understanding patterns after a decade of good intentions. Russ picked the most useful patterns for Ruby and introduced them in a straightforward and logical manner, going beyond the GoF's patterns. This book has improved my use of Ruby, and encouraged me to blow off the dust covering the GoF book."

—Mike Stok

"Design Patterns in Ruby is a great way for programmers from statically typed objectoriented languages to learn how design patterns appear in a more dynamic, flexible language like Ruby."

—Rob Sanheim, Ruby Ninja, Relevance

Most design pattern books are based on C++ and Java. But Ruby is different—and the language's unique qualities make design patterns easier to implement and use. In this book, Russ Olsen demonstrates how to combine Ruby's power and elegance with patterns, and write more sophisticated, 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 any experienced software developer to immediately utilize patterns with Ruby. The book especially calls attention to Ruby features that simplify 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 from the Ruby point of view, explaining what problems each pattern solves, discussing whether traditional implementations make sense in the Ruby environment, and introducing Ruby-specific improvements. You'll discover opportunities to implement patterns in just one or two lines of code, instead of the endlessly repeated boilerplate that conventional languages often require.

Design Patterns in Ruby also identifies innovative new patterns that have emerged from the Ruby community. These include ways to create custom objects with metaprogramming, as well 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.

商品描述(中文翻譯)

對於 Ruby中的設計模式 的讚譽

"Ruby中的設計模式 記錄了許多Ruby開發者常遇到的問題的聰明解決方法。Russ Olsen在選擇經典模式的同時,還增添了對Ruby特別相關的新模式。他清楚地解釋了每個概念,為Ruby開發者的日常工作提供了豐富的經驗。"

—Steve Metsker,Dominion Digital, Inc.的管理顧問

"這本書很好地展示了關鍵的「四人幫」設計模式,而不需要過於技術性的解釋。以精確但幾乎非正式的風格撰寫,這本書涵蓋的內容足夠,即使是那些沒有接觸過設計模式的人,也能很快自信地使用Ruby來應用它們。Olsen成功地將一本關於傳統上「枯燥」主題的書寫得如此引人入勝,甚至偶爾還帶有幽默感。"

—Peter Cooper

"這本書在我十年的良好意圖後,重新激發了我對理解模式的興趣。Russ挑選了對Ruby最有用的模式,並以直接且合邏輯的方式介紹它們,超越了GoF的模式。這本書改善了我對Ruby的使用,並鼓勵我去除GoF書籍上的灰塵。"

—Mike Stok

"Ruby中的設計模式 是靜態類型物件導向語言的程式設計師學習如何在像Ruby這樣更具動態性和靈活性的語言中出現設計模式的好方法。"

—Rob Sanheim,Ruby Ninja,Relevance

大多數設計模式書籍都是基於C++和Java。但Ruby則不同——這種語言的獨特特性使得設計模式更容易實現和使用。在這本書中,Russ Olsen展示了如何將Ruby的力量和優雅與模式結合,並用更少的程式碼行編寫更複雜、更有效的軟體。

在回顧設計模式的歷史、概念和目標後,Olsen提供了Ruby語言的快速導覽——足以讓任何有經驗的軟體開發者立即在Ruby中利用模式。這本書特別強調了簡化模式使用的Ruby特性,包括動態類型、程式碼閉包和「mixins」以便於程式碼重用。

從Ruby的角度考慮經典的「四人幫」模式中的十四種,解釋每個模式解決的問題,討論傳統實現是否在Ruby環境中有意義,並介紹Ruby特有的改進。你將發現只需一兩行程式碼就能實現模式的機會,而不是傳統語言經常需要的無休止重複的樣板程式碼。

Ruby中的設計模式 也識別了來自Ruby社群的新創新模式。這些包括使用元程式設計創建自定義物件的方法,以及旨在幫助整合整個應用程式和框架的雄心勃勃的基於Rails的「約定優於配置」模式。

引人入勝、實用且易於理解的 Ruby中的設計模式 將幫助你構建更好的軟體,同時使你的Ruby程式設計體驗更加豐富。

最後瀏覽商品 (20)