Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Commit

Permalink
For #342 - simplifying what does mvc give us summary
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani committed Mar 29, 2013
1 parent 669ad54 commit a5592b4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions chapters/02-fundamentals.md
Expand Up @@ -263,13 +263,7 @@ In this respect, contrary to what might be mentioned in the official documentati

## What does MVC give us?

To summarize, the separation of concerns in MVC facilitates modularization of an application's functionality and enables:

* Easier overall maintenance. When updates need to be made to the application it is clear whether the changes are data-centric, meaning changes to Models and possibly Controllers, or merely visual, meaning changes to Views.
* Decoupling Models and Views means that it's straight-forward to write unit tests for business logic
* Duplication of low-level Model and Controller code is eliminated across the application
* Depending on the size of the application and separation of roles, this modularity allows developers responsible for core logic and developers working on the user-interfaces to work simultaneously

To summarize, the MVC pattern helps you keep your application logic separate from your user interface, making it easier to change and maintain both. Thanks to this separation of logic, it is more clear where changes to your data, interface or business logic need to be made and for what your unit tests should be written.

### Delving Deeper into MVC

Expand Down Expand Up @@ -302,7 +296,6 @@ If you are interested in learning more about the variation of MVC which Backbone
* Extensive eventing system. It's [trivial](http://lostechies.com/derickbailey/2011/07/19/references-routing-and-the-event-aggregator-coordinating-views-in-backbone-js/) to add support for pub/sub in Backbone
* Prototypes are instantiated with the ```new``` keyword, which some developers prefer
* Agnostic about templating frameworks, however Underscore's micro-templating is available by default. Backbone works well with libraries like Handlebars
* Doesn't support deeply nested Models, though there are Backbone plugins such as [Backbone-relational](https://github.com/PaulUithol/Backbone-relational) which can help
* Clear and flexible conventions for structuring applications. Backbone doesn't force usage of all of its components and can work with only those needed.

### Used by
Expand Down

0 comments on commit a5592b4

Please sign in to comment.