Ruby Best Practices (Google eBook)

Front Cover
"O'Reilly Media, Inc.", Jun 11, 2009 - Computers - 336 pages
10 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.

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.

  

What people are saying - Write a review

User ratings

5 stars
5
4 stars
4
3 stars
0
2 stars
0
1 star
1

Review: Ruby Best Practices

User Review  - Aron - Goodreads

Nice overview of many Ruby best practices clearly explained with real world examples. Read full review

Review: Ruby Best Practices

User Review  - Paul - Goodreads

It doesn't pretend to be encyclopedic in the manner of The Ruby Way. However, where sometimes I find The Ruby Way curtails topics just when they start to get interesting, Brown dives deep with Ruby ... Read full review

Contents

Chapter 1 Driving Code Through Tests
1
Chapter 2 Designing Beautiful APIs
31
Chapter 3 Mastering the Dynamic Toolkit
57
Chapter 4 Text Processing and File Management
99
Chapter 5 Functional Programming Techniques
121
Chapter 6 When Things Go Wrong
153
Chapter 7 Reducing Cultural Barriers
177
Chapter 8 Skillful Project Maintenance
205
Appendix A Writing BackwardCompatible Code
239
Appendix B Leveraging Rubys Standard Library
251
Appendix C Ruby Worst Practices
283
Index
299
Copyright

Common terms and phrases

Bibliographic information