
Ruby Best Practices
Increase Your Productivity - Write Better Code
Gregory T Brown(Author)
O'Reilly (Publisher)
1st Edition
Published on 21. July 2009
Book
328 pages
978-0-596-52300-8 (ISBN)
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.
More details
Language
English
Place of publication
Sebastopol
United States
Target group
Professional and scholarly
Product notice
Paperback (trade)
Unsewn / adhesive bound
Dimensions
Height: 235 mm
Width: 180 mm
Thickness: 23 mm
Weight
452 gr
ISBN-13
978-0-596-52300-8 (9780596523008)
Schweitzer Classification
Other editions
Additional editions

E-Book
06/2009
1st Edition
O'Reilly
€32.99
Available for download

E-Book
06/2009
1st Edition
O'Reilly
€27.49
Available for download
Person
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.
Content
- Foreword
- Preface
- Chapter 1: Driving Code Through Tests
- Chapter 2: Designing Beautiful APIs
- Chapter 3: Mastering the Dynamic Toolkit
- Chapter 4: Text Processing and File Management
- Chapter 5: Functional Programming Techniques
- Chapter 6: When Things Go Wrong
- Chapter 7: Reducing Cultural Barriers
- Chapter 8: Skillful Project Maintenance
- Writing Backward-Compatible Code
- Leveraging Ruby's Standard Library
- Ruby Worst Practices
- Colophon