Chapter 3.2. Design Patterns and Object-Oriented MVC

In a fully MVC framework, views are observers of controllers and models, and models are observers of the controller. Okay, so you might be asking us, “What exactly does it mean for a view to be an ‘observer of the model?’” Well, this is “design pattern speak” for saying that the view either subscribes to the model so that it can be updated whenever the model is changed, or that it polls the model periodically for updates and changes when that happens.

Perhaps you are asking yourself why all this stuff about MVC is important. Will it help me build better applications or help me impress Jenny from marketing?

It might. You’ll be able to build more-robust applications, with better ...

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.