Effective Ruby: 48 Specific Ways to Write Better Ruby (Paperback)
Peter J. Jones
- 出版商: Addison-Wesley Professional
- 出版日期: 2014-10-05
- 定價: USD $39.99
- 售價: $1,120
- 語言: 英文
- 頁數: 240
- 裝訂: Paperback
- ISBN: 0133846970
- ISBN-13: 9780133846973
Effective Ruby 中文版 | 寫出良好 Ruby 程式的 48 個具體做法(Effective Ruby: 48 Specific Ways to Write Better Ruby)
貴賓價: $450Ruby 基礎教程(第4版) /圖靈程序設計叢書
貴賓價: $1,575Ruby Cookbook, 2/e (Paperback)
貴賓價: $1,193Learn Ruby the Hard Way: A Simple and Idiomatic Introduction to the Imaginative World Of Computational Thinking with Code, 3/e（Paperback）
貴賓價: $1,645Go in Practice
貴賓價: $1,485Akka in Action
If you’re an experienced Ruby programmer, Effective Ruby will help you harness Ruby’s full power to write more robust, efficient, maintainable, and well-performing code. Drawing on nearly a decade of Ruby experience, Peter J. Jones brings together 48 Ruby best practices, expert tips, and shortcuts—all supported by realistic code examples.
Jones offers practical advice for each major area of Ruby development, from modules to memory to metaprogramming. Throughout, he uncovers little-known idioms, quirks, pitfalls, and intricacies that powerfully impact code behavior and performance.
Each item contains specific, actionable, clearly organized guidelines; careful advice; detailed technical arguments; and illuminating code examples. When multiple options exist, Jones shows you how to choose the one that will work best in your situation.
Effective Ruby will help you systematically improve your code—not by blindly following rules, but by thoroughly understanding Ruby programming techniques.
Key features of this concise guide include
- How to avoid pitfalls associated with Ruby’s sometimes surprising idiosyncrasies
- What you should know about inheritance hierarchies to successfully use Rails (and other large frameworks)
- How to use misunderstood methods to do amazingly useful things with collections
- Better ways to use exceptions to improve code reliability
- Powerful metaprogramming approaches (and techniques to avoid)
- Practical, efficient testing solutions, including MiniTest Unit and Spec Testing
- How to reliably manage RubyGem dependencies
- How to make the most of Ruby’s memory management and profiling tools
- How to improve code efficiency by understanding the Ruby interpreter’s internals