Hi ,
Welcome to WebDevPro #109!
This issue is a focused feature on Ruby on Rails and what changes as your app grows. Think of this as a field note for future you working on a larger Rails app. We open with the moves we all make early on.
Rails gives teams a lot of power with very little ceremony. In the early days of a product, you sprinkle in a before action here, a concern there, maybe lean on Current to keep a request scoped value, and you move fast. Months later, the same choices feel heavier. A callback fires in a place you did not expect. A concern hides three different responsibilities. A bit of global state leaks into a background job and silently turns into nil. Momentum slows, onboarding takes longer, and reviews start to circle around the same questions.
This feature is based on the book Layered Design for Ruby on Rails Applicationsby Vladimir Dementyev. The book is a pragmatic field guide for growing Rails apps with clear layers, explicit boundaries, and small, composable patterns. It protects the parts of Rails that make teams productive while offering a sustainable way to separate behavior, route side effects, and handle context without surprises. What follows distills those ideas into an immediately useful checklist for three hot spots that show up in every mature codebase.
We will talk about callbacks that do a little too much, concerns that start tidy and end up as grab bags, and global state that feels convenient until work leaves the request. You will see what to keep close to the model, what to extract into events and collaborators, and how to make context explicit so changes stay predictable. The goal is momentum. You get techniques that fit into a normal sprint and refactors that ship in small, confident steps.
This feature walks through three places Rails codebases get wobbly as they grow: callbacks, concerns, and global state.
You will see what to keep, what to move, and how to do it without pausing your sprint. Everything is hands-on and modern Ruby on Rails.
Before diving in, let’s see what news made waves last week: