Book description
The Complete Guide to Avoiding and Fixing Common Rails 3 Code
and Design Problems
As developers worldwide have adopted the powerful Ruby on Rails web
framework, many have fallen victim to common mistakes that reduce
code quality, performance, reliability, stability, scalability, and
maintainability. Rails™ AntiPatterns identifies
these widespread Rails code and design problems, explains why
they’re bad and why they happen—and shows exactly what
to do instead.
The book is organized into concise, modular chapters—each outlines a single common AntiPattern and offers detailed, cookbook-style code solutions that were previously difficult or impossible to find. Leading Rails developers Chad Pytel and Tammer Saleh also offer specific guidance for refactoring existing bad code or design to reflect sound object-oriented principles and established Rails best practices. With their help, developers, architects, and testers can dramatically improve new and existing applications, avoid future problems, and establish superior Rails coding standards throughout their organizations.
This book will help you understand, avoid, and solve problems with
Model layer code, from general object-oriented programming violations to complex SQL and excessive redundancy
Domain modeling, including schema and database issues such as normalization and serialization
View layer tools and conventions
Controller-layer code, including RESTful code
Service-related APIs, including timeouts, exceptions, backgrounding, and response codes
Third-party code, including plug-ins and gems
Testing, from test suites to test-driven development processes
Scaling and deployment
Database issues, including migrations and validations
System design for “graceful degradation” in the real world
Table of contents
- Title Page
- Copyright Page
- Dedication Page
- Contents
- Foreword
- Introduction
- Acknowledgments
- About the Authors
- Chapter 1. Models
- Chapter 2. Domain Modeling
- Chapter 3. Views
- Chapter 4. Controllers
- Chapter 5. Services
- Chapter 6. Using Third-Party Code
- Chapter 7. Testing
- Chapter 8. Scaling and Deploying
- Chapter 9. Databases
- Chapter 10. Building for Failure
- Index
- Footnotes
Product information
- Title: Rails™ AntiPatterns: Best Practice Ruby on Rails™ Refactoring
- Author(s):
- Release date: November 2010
- Publisher(s): Addison-Wesley Professional
- ISBN: None
You might also like
book
Ruby Best Practices
How do you write truly elegant code with Ruby? Ruby Best Practices is for programmers who …
book
Design Patterns in Ruby
Praise for Design Patterns in Ruby " documents smart ways to resolve many problems that Ruby …
book
Effective Ruby: 48 Specific Ways to Write Better Ruby
If you’re an experienced Ruby programmer, will help you harness Ruby’s full power to write more …
book
Mastering Ruby Closures
The road to Ruby mastery is paved with blocks, procs, and lambdas. To be a truly …