Do we really need javascript frameworks?
I started learning javascript and web development a while a go. I decided to learn javascript without any frameworks or libraries so I would properly learn the basics.
So far I haven't really felt the need to use frameworks or libraries. I've been close to using JQuery but I've able to avoid it until now. But even if I end up using JQuery, it is just a library and not a framework.
What do frameworks like Backbone.js, and ember.js have to offer? These frameworks offer functionality at the cost of adding a lot of complexity.
9 comments
[ 3.4 ms ] story [ 23.8 ms ] threadIn the case of such frameworks like Backbone/ember/Angular: these are implementations of MVC or MVVM or other such patterns, in Javascript. These make it easy to share data between web services you create, and, in the case of e.g. Knockout, bind data to controls on your page. You save yourself from having to write AND test all these things yourself. I have tried, for the first time, Backbone mere days ago, to see what the added benefit is. It gave me what's required to send data (in JSON format) to, for example, my controller, but what's nice about it is, for example, model binding.
It might not be entirely unlike PHP's situation: you can program your projects in plain PHP, or you can use the Zend Framework or Symphony or whatever you prefer, which adds a lot of (tested) logic that you otherwise would have to program yourself.
Do you NEED it? Not using these won't limit you, but you'll probably find yourself programming these things out yourself in a lot of cases, where many smart people have done this already.
I haven't really looked at it from that point of view, I guess that is a pretty a pretty big advantage. The basics of writing a widget are pretty simple most of the time, but testing it on different browsers and edge cases always takes more time than I think it will.
The question came to me after I did my 3rd bootstrap like architecture for some projects I've been working for. You will end doing something like JQuery in the end, if you want to be organized and want to maintain all in a large team, you end up doing a framework so everyone does the same.
After doing it 4 times, I realized I can use Boostrap and do the same on 1/4 of the requiered time and, avoid the testing phase for many, many things.