Chapter 1.1.2. Making It Easy to Maintain

If you look at a typical PHP, ColdFusion, ASP, or JSP application, you’ll see that nearly every page includes sections devoted to user presentations, database access, and flow control, and that all of this code is jumbled up together in one tangled mess.

For small applications, this works fine; but when things start to grow a bit, it gets pretty hard to maintain. When your boss asks you to make a simple change in one place, you can easily break things in code in another file; and if you aren’t careful, you might not discover the breakage until a week later when one of the VPs calls to tell you about how he made a fool of himself when he did a demo of your application for a client and everything fell ...

Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.