Computer ScienceScience & MathematicsEconomics & FinanceBusiness & ManagementPolitics & GovernmentHistoryPhilosophy

Ruby Best Practices

Increase Your Productivity - Write Better Code

by Gregory T. Brown

Ruby Best Practices

Subscribe to new books via telegram channel

DescriptionTable of ContentsDetailsHashtagsReport an issue

Book 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.

This open book is licensed under a Creative Commons License (CC BY-NC-SA). You can download Ruby Best Practices ebook for free in PDF format (4.0 MB).

Table of Contents

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
Appendix A
Writing Backward-Compatible Code
Appendix B
Leveraging Ruby's Standard Library
Appendix C
Ruby Worst Practices

Book Details

Ruby Best Practices
Computer Science
O'Reilly Media
ISBN13 Digital
ISBN10 Digital
PDF Size
4.0 MB

Book Hashtags

Related Books

Rethinking Productivity in Software Engineering
Get the most out of this foundational reference and improve the productivity of your software teams. This book collects the wisdom of the 2017 "Dagstuhl" seminar on productivity in software engineering, a meeting of community leaders, who came together with the goal of rethinking traditional definitions and measures of productivity. The ...
The Symfony Framework is well-known for being really flexible and is used to build micro-sites, enterprise applications that handle billions of connections and even as the basis for other frameworks. Since its release in July 2011, the community has learned a lot about what's possible and how to do things best. These community resources - l...
RESTful Web Services
You've built web sites that can be used by humans. But can you also build web sites that are usable by machines? That's where the future lies, and that's what RESTful Web Services shows you how to do. The World Wide Web is the most popular distributed application in history, and Web services and mashups have turned it into a powerful...
Building Cloud Apps with Microsoft Azure
This book walks you through a patterns-based approach to building real-world cloud solutions. The patterns apply to the development process as well as to architecture and coding practices. Developers who are curious about developing for the cloud, are considering a move to the cloud, or are new to cloud development will find here a concise overv...
PHP: The Right Way
There's a lot of outdated information on the Web that leads new PHP users astray, propagating bad practices and insecure code. PHP: The Right Way is an easy-to-read, quick reference for PHP popular coding standards, links to authoritative tutorials around the Web and what the contributors consider to be best practices at the present time. T...
Building Secure and Reliable Systems
Can a system be considered truly reliable if it isn't fundamentally secure? Or can it be considered secure if it's unreliable? Security is crucial to the design and operation of scalable systems in production, as it plays an important part in product quality, performance, and availability. In this book, experts from Google share best prac...