- STAFF PICKS
- GIFTS + GIFT CARDS
- SELL BOOKS
- FIND A STORE
New Trade Paper
Ships in 1 to 3 days
Ruby Best Practicesby Gregory Brown
Synopses & Reviews
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.
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.
Book News Annotation:
Brown, developer of the Ruby project Prawn, explains how to bend Ruby code without breaking it and write faster code by keeping things simple. Rather than a collection of code recipes, the book explores different approaches for solving problems in Ruby. Each of the book's eight chapters starts with a case study based on code from real Ruby projects, to provide practical experience in code reading. The rest of the chapter mixes real code with abstract examples. Three appendices cover writing backwards-compatible code, leveraging Ruby's standard library, and Ruby 'worst practices'. Not intended for beginners, the book assumes a technical grasp of Ruby and some experience developing software with it. Brown is a Rubyist who works on free software projects in Ruby. Annotation ©2009 Book News, Inc., Portland, OR (booknews.com)
With this concise book, Ruby programmers learn how to design beautiful APIs and domain-specific languages, write code that's readable and expressive, and work with functional programming ideas and techniques that can simplify code and make them more productive.
About the Author
Gregory T. Brown is a New Haven, CT based Rubyist who spends most of his time on free software projects in Ruby. His main projects are Prawn and Ruport, and he is also the author of the upcoming book Ruby Best Practices. He also is in possession of a small bamboo plant that seems to be invincible, and he is quite proud of this accomplishment.
Table of Contents
ForewordPrefaceChapter 1: Driving Code Through TestsChapter 2: Designing Beautiful APIsChapter 3: Mastering the Dynamic ToolkitChapter 4: Text Processing and File ManagementChapter 5: Functional Programming TechniquesChapter 6: When Things Go WrongChapter 7: Reducing Cultural BarriersChapter 8: Skillful Project MaintenanceWriting Backward-Compatible CodeLeveraging Rubys Standard LibraryRuby Worst PracticesColophon
What Our Readers Are Saying
Other books you might like