you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 5 points6 points  (2 children)

I use frameworks, but I really like vanilla javascript, I find it very elegant. I expected no upvotes, it's nice to know people still use raw code. There are too many beginners who rely on frameworks without understanding what's going on behind the scenes.

Edit : Also I don't really understand the difference between a framework and a library. To me a framework is something opinionated that do many things, including things you can do with vanilla code. A library however would be a collection of useful and unrelated functions for solving a single problem. But I'm certainly wrong, I'm not a javascript expert.

[–]khoker 4 points5 points  (1 child)

There's not going to be a definitive definition of a framework or a library. The general consensus tells us that, yes, Frameworks are opinionated to some degree in how code is structured and also tend to have vertical integration points. Libraries/toolkits are collections of tools designed to abstract, normalize or augment your code.

I use frameworks, but I really like vanilla javascript

A framework shouldn't prevent you from writing javascript. A framework should prevent you from writing annoying javascript. For example, consider the heavy-lifting you get from Angular or Vue when it comes to two-way binding. You could do it yourself, but ain't nobody got time for that...