addyosmani / backbone-fundamentals

:book: A creative-commons book on Backbone.js for beginners and advanced users alike

Home Page:http://addyosmani.github.io/backbone-fundamentals/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Framework/Library ambiguity

MichaelArnoldOwens opened this issue · comments

Under the section "What is Backbone.js?"

"Backbone.js is a lightweight JavaScript library that adds structure to your client-side code."

Backbone is called a library, however at the end of the section "Client-Side MVC & Single Page Apps"
Backbone is referred to as a framework:

"Through evolution and trial and error, JavaScript developers have harnessed the power of the traditional MVC pattern, leading to the development of several MVC-inspired JavaScript frameworks, such as Backbone.js."

Is it both a library and framework? If so, the first section, "What is Backbone.js" should state this.

Many people use the terms library and framework interchangeably. I think that's what has happened here.

Agree we should be consistent. Let's say library wherever possible.

@addyosmani wikipedia clearly calls it a framework: https://en.wikipedia.org/wiki/Backbone.js
as does the majority of sources

@oscarmorrison
http://backbonejs.org/#FAQ-why-backbone

Backbone is a library, not a framework, and plays well with others. You can embed Backbone widgets in Dojo apps without trouble, or use Backbone models as the data backing for D3 visualizations (to pick two entirely random examples).