Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is better, One javascript framework, or multiple frameworks

Tags:

javascript

I am an avid user of the YUI framework (http://developer.yahoo.com/yui/). It has its' strengths and weaknesses both performance wise and syntax wise. I have seen a bit of JQuery and I have worked a little with prototype as well but I have stuck mainly to YUI. My question is, is it better to stick with one Javascript library per application, or leverage the abilities of multiple javascript frameworks in your application?

like image 781
Zoidberg Avatar asked Aug 17 '09 16:08

Zoidberg


People also ask

Can you use multiple JavaScript frameworks together?

Projects In JavaScript & JQuerynoConflict() method allows you to use multiple frameworks, while using jQuery. Other JavaScript frameworks include Ember, Angular, Backbone, etc.

Why do we need different frameworks for JavaScript?

JavaScript frameworks are an essential part of modern front-end web development, providing developers with tried and tested tools for building scalable, interactive web applications.

Should I stick one framework?

I would suggest that restricting yourself to one specific framework will make getting web developer jobs harder. I would definitely recommend that you try and get some experience using as many different frameworks as possible.


2 Answers

I think it is better to use one framework for at least two reasons:
1. Code is easy to maintain because there is no syntax mix.
2. Application loads a little faster and I think should execute little faster.

like image 125
Eugeniu Torica Avatar answered Oct 17 '22 20:10

Eugeniu Torica


My guess is that multiple frameworks is better as long as each has its purpose. If I'm building an ASP.Net web application with AJAX functionality, there may be some built-in ASP.Net AJAX Javascript libraries being used automatically that can be combined with JQuery to handle some situations. Alternatively, one could have third-party controls like Telerik's RAD controls that also bring in more Javascript code possibly. The key is to understand what each framework is adding in terms of rolling your own.

like image 43
JB King Avatar answered Oct 17 '22 19:10

JB King