From what I read, I realized that this is just a clever template engine, how is it better, for example, jquery? I can do the separation of logic and pattern in pure js, and in the same jqery.
Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants of D-side , user207618, dirkgntly , Vladimir Gamalyan , aleksandr barakin 28 Aug '16 at 9:08 .
The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .
1 answer
Read again.
backbone.js is not a template engine, in the sense in which the template engine is understood in the front-end world (as any jade, handlebars etc).
Please use pure js or jquery if you are comfortable.
Nobody forbids writing a bicycle to a person who loves and wants to write bicycles.
But when you need to write a full-fledged spa application and not just a slider, then it will be long enough.
And when you start writing a second spa application, you will notice that you already wrote a lot of code in the past, and it would be good not to write it again.
So, there are developers in the world who have written more than a dozen of these spa applications of different complexity. And sometimes they write libraries, collecting in them what is most likely useful in the next application. Backbone is one such library.
Specifically, backbone.js , this is such a kind of small preparation, a framework for implementing a complex application based on the MV * pattern. Includes a router, custom events, the implementation of models and collections, etc.
You can write this frame yourself, along the way by collecting many hundreds of rakes. Very brave way. Many new things to learn. (A good application in time will not write most likely, but this is the tenth thing, right?)