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.
Computers & technology
Ratings and reviews
4.5
2 reviews
5
4
3
2
1
A Google user
Flag inappropriate
December 3, 2010
This book has been awesome. This book demystified a lot of conventions that ruby uses for blocks, parameter passing and other stuff. I'm only on chapter two, but if the rest of the book goes like what I've already read, then this will be one of the best ruby books I've read.
Rate this ebook
Tell us what you think.
Reading information
Smartphones and tablets
Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.
Laptops and computers
You can listen to audiobooks purchased on Google Play using your computer's web browser.
eReaders and other devices
To read on e-ink devices like Kobo eReaders, you'll need to download a file and transfer it to your device. Follow the detailed Help Center instructions to transfer the files to supported eReaders.