Ruby Best Practices
Increase Your Productivity - Write Better Code
By Gregory Brown
June 2009
Pages: 328
ISBN 10: 0-596-52300-9 |
ISBN 13: 9780596523008


Description
Ruby Best Practices is for programmers who want to use Ruby the way Rubyists do. Written by the developer of the Ruby project Prawn (prawn.majesticseacreature.com), this concise book explains how to design beautiful APIs and domain-specific languages, work with functional programming ideas and techniques that can simplify your code and make you more productive, write code that's readable and expressive, and much more. It's the perfect companion to The Ruby Programming Language.
Full Description
How do you write truly elegant code with Ruby?
Ruby Best Practices is for programmers who want to use Ruby as experienced Rubyists do. Written by the developer of the Ruby project Prawn, this concise book explains how to design beautiful APIs and domain-specific languages with Ruby, as well as how to work with functional programming ideas and techniques that can simplify your code and make you more productive. You'll learn how to write code that's readable, expressive, and much more.
Ruby Best Practices will help you:
- Understand the secret powers unlocked by Ruby's code blocks
- Learn how to bend Ruby code without breaking it, such as mixing in modules on the fly
- Discover the ins and outs of testing and debugging, and how to design for testability
- Learn to write faster code by keeping things simple
- Develop strategies for text processing and file management, including regular expressions
- Understand how and why things can go wrong
- Reduce cultural barriers by leveraging Ruby's multilingual capabilities
This book also offers you comprehensive chapters on driving code through tests, designing APIs, and project maintenance. Learn how to make the most of this rich, beautiful language with Ruby Best Practices.
Featured customer reviews
Be the first person to review this book!

Media reviews
"
RBP is very rich with ideas and perspectives and examples but there are also a lot of simple takeaways that will stick with me as long as I write code in Ruby...You should check it out, read it in your user group or dev team and discuss it. I really think we need more of these type of practical best practices books and blogs and case-studies and discussions and I am glad for the appearance of this book."
-- Dylan Clendenin,
Deep Thawtz
"Given my experience and goals,
Ruby Best Practices was a perfect read...Not only are Browns examples excellent, but they are plentiful. Nearly every new idea he introduces is demonstrated through a case study of real (or plausibly real) code. Working through this book will definitely sharpen your code-reading skills. Beyond simply being clear, Browns writing is also fun to read. His enthusiasm for the subject matter is obvious...and leads to a technical book that Im tempted to call a page-turner. "
-- Ben Orenstein,
Codeulate.
Read all reviews