A development team hadn't shipped a single feature in six months. Controllers with 2,000-line methods. A codebase everyone feared to touch. 25 days later, they were shipping again. This wasn't magic. It was patterns that work.
Nothing Shared, Everything Gained distills seven years of consulting with over a hundred development teams and eight years of building Frontastic as CTO into a practical, framework-agnostic architecture for PHP applications. The core insight: side effects are the enemy. Stateless code has nowhere to hide bugs.
The book introduces five building blocks -- Data Objects, Services, Gateways, Controllers, and Components -- and shows how to use them to make any codebase changeable without a rewrite. Two fictional developers, Paula (the library builder) and Peter (the product builder), offer complementary perspectives on every decision, so you can adapt the patterns to your context instead of following dogma.
Topics include refactoring legacy code, testing strategy ("write testable code always, write tests selectively"), validation, error handling, scaling under load, and scaling across teams. All examples use PHP with Symfony and Laravel implementations, but the principles apply to any web stack.
This book is for working developers who maintain real codebases with real deadlines. Not toy examples, not academic theory. Patterns that saved actual teams from actual disasters.