I have seen many projects that grew out of a simple "MVC" structure. Developers often explain the MVC pattern: "View is HTML templates, Model is an Active Record class (like Eloquent), and one controller to rule them all!". Well, not just one, but all additional logic is usually implemented in controller classes. Controllers often contain a lot of code that implements various logic: image uploads, external API calls, database operations, etc. Sometimes some logic is extracted into "base" controllers to reduce code duplication, but they grow into thousands of lines. The same problems arise in both medium-sized projects and large portals with millions of daily visitors. In this book, I will show the most common problems that appear during the growth of a project and how developers usually solve them.
ThriftBooks sells millions of used books at the lowest everyday prices. We personally assess every book's quality and offer rare, out-of-print treasures. We deliver the joy of reading in recyclable packaging with free standard shipping on US orders over $20. ThriftBooks.com. Read more. Spend less.