When Rails abstractions are not enough
The Ruby on Rails framework revolutionized web development with its convention-over-configuration principle and MVC pattern. But as applications grow, that initial simplicity often leads to complexity, making a well-structured codebase difficult to maintain.
This book helps you harness the full potential of Rails while keeping your code clean and maintainable through useful patterns and abstraction layers.
What’s inside
Core concepts
- Rails’ architectural patterns with their advantages and disadvantages
- Organizing business logic when the default approach is insufficient
- Introducing new abstractions to address design problems
- Service extractions and scaling Rails codebases
Practical patterns covered
- Data Layer Abstractions: Beyond Active Record
- Handling User Input: Outside of models
- Representation Layer: Pulling out view logic
- Authorization Models: Multiple layers and approaches
- Notifications Layer: From mailers to multi-channel deliveries
- HTML Views: Better abstractions for complex UIs
- Configuration: First-class application citizen
- Cross-Layers: Connecting the dots
Who this book is for
Whether you’ve recently launched your first Rails MVP or are struggling with a sizable monolithic application, this book provides battle-tested patterns from Evil Martians’ extensive experience building and scaling Rails applications for startups and enterprises.
Prerequisites
- Deep understanding of core Rails principles
- Prior experience building web apps with Rails
- Desire to write maintainable, scalable code
About the author
Vladimir Dementyev is a backend engineer at Evil Martians, award-winning contributor to Ruby on Rails and Ruby, creator of AnyCable, TestProf, Action Policy, and dozens of other open source projects. He’s been solving Rails architectural challenges for over a decade, working with startups and established companies worldwide.
Get the book
Available in print, Kindle, and PDF formats:
- Amazon — Print and Kindle editions
- Packt Publishing — All formats including PDF
“This book will help you keep your code maintainable while working on a Rails app… By the end of this book, you’ll become a code design specialist with a deep understanding of the Rails framework principles.”