Poll: What is Your Preferred JavaScript Framework?
As different as the JavaScript frameworks can be, they all do just about the same thing. Still, a developer's choice of JavaScript framework is a very personal decision. When choosing a framework, a developer must consider:
- component modularity
- file size
- community support
- code efficiency
- project needs (on a project by project basis)
What framework do you prefer? Make your vote and share your reasoning in the comments.
[poll id="2"]
I work with an awesome cast of developers at Mozilla, and one of them in Daniel Buchner. Daniel's shared with me an awesome strategy for detecting when nodes have been injected into a parent node without using the deprecated DOM Events API.
One of my favorite social APIs was the Open Graph API adopted by Facebook. Adding just a few META tags to each page allowed links to my article to be styled and presented the way I wanted them to, giving me a bit of control...
If you troll page markup like me, you've no doubt seen the use of data URI's within image src attributes. Instead of providing a traditional address to the image, the image file data is base64-encoded and stuffed within the src attribute. Doing so saves...
I really dislike jQuery's element creation syntax. It's basically the same as typing out HTML but within a JavaScript string...ugly! Luckily Basil Goldman has created a jQuery plugin that allows you to create elements using MooTools-like syntax.
Standard jQuery Element Creation
Looks exactly like writing out...
I like jQuery most, most likely because I learned the basics on http://blog.themeforest.net/tutorials/jquery-for-absolute-beginners-day-1/
I don’t actually have many web programming friends. The ones I do have are on the internet only. When I realized there were these collection of javascript libraries I asked around. I got one vote for jQuery and another for YUI and the rest said they didn’t mess with javascript. I chose jQuery about a year ago probably on the layout of their website alone but I haven’t regretted it or anything.
I’ve only been following your blog for about 20 posts now. But I got to ask, since you’ve been writing about MooTools recently, do you think your readers might be biased? =D/
mootools became my framework of choice after a little bit research a year ago. Since then I had just been using my own functions and XHTTPRequests.
I also have done a couple of little things with jQuery (a multiple SELECT sync,…).
To tell the truth both frameworks are fantastic. You can even combine one of them with a CSS framework like Blueprint and you have a lot of quailty scaffolding for your website.
There is one thing that is worrying me lately. I have read at other blogs that the mootools developers are not so open minded as those of jQuery (elitist is the word they use)
I am afraid jQuery development will advance faster and with more quality than mootools’. The same for external plugins, bloggers and so on.
IMHO, community is as important as quality of the framework and maybe it is much better jQuery’s community than mootools’.
I would like to add that your blog is a good meeting point for us mootools developers.
On the other hand, it is great if any framework includes advances in other frameworks.
Last, it’s interesting to follow the works in Yahoo (YUI) and Google’s APIs or even other frameworks like Prototype, Mochikit,…
Regards.
I love this question. What’s funny is that the two most popular frameworks are actually very different in their missions:
Excerpt from jQuery’s mission statement:
Translation: You need to learn a new language — it’s not exactly JS. In a way it’s a dialect of JS.
Excerpt from MooTools’ mission statement
Translation: JS-uninformed stay away.
Basically, jQuery is good for the new-to-JS developer. It’s extremely powerful, but it’s also like its own language. A very good JS developer won’t understand jQuery until he “learns its dialect.” MooTools however is more like real JS, just in a completely object-oriented system with really powerful features.
I feel like jQuery is getting a lot more attention from the blogosphere lately just because there are more non-JS developers than JS-developers, so jQuery is the weapon of choice.
I prefer MooTools myself, but jQuery is pretty cool and for non-JS people, it seems to be the favorite. Regardless, I think every developer should be able to work in many different frameworks.
That’s a tough one. I like different features from several (like Dojo’s packaging system and MooTools class system). Ext looks beautiful and DWR is unique. I just love ’em all I guess.
I use Prototype – mainly because it was one of the only frameworks around when our team started using it, we’re all comfortable with it and don’t see much need to change right now.
absolutely JQUERY…NO DOUBT !!
I don’t think than JQuery is a diferent language, simply, it’s designed for people than don’t know much about javascript. With JQuery you don’t need learn javascript, just use the framework, use the plugins than you need and it’s works. It’s perfect for a designer :)
But obviously, that is not the way to create an complex aplication with javascript. Everyone knows than if you need develop a big aplication, you gonna need something more powerful, flexible and Orient-Object. I think than Mootools can do this very well.
By the way, I like your blog, thanks for all articles :)
I use jQuery because of two things, I visit nettuts.com regularly and they have a number of jQuery tutorials. Plus the themeforest blog has a series on jQuery and it’s great, so for the same reason as pascalmh!!
I must say, I’m a bit I’m surprised at these results. Very surprised actually. I would have thougt that YUI and Prototype would get a some more votes.
First off, I’m not a JS developer. I simply use JS for a few DOM manipulations and more “visual” stuff. And for that, jQuery fits the bill perfectly. I actually started with Prototype, but switched because of the need (and size) of scriptalicious (not to mention, I couldn’t spell it right).
I have looked a mootools. And if I were doing anything heavier that simple DOM, I would definitely look into it more.
I would expect jquery and mootools will be the top two, because David gives those two js tuts. So people coming to read this site are mainly who are using these js. IMO I think the result will be very biased.
My vote is for the framework I created myself – it has just one user – myself ;-)
http://www.openjs.com/scripts/jslibrary/
Effects MooTools has smooth effects and Robert Penner easing transitions built in.
Plugins MooTools has sweet plugins including the unmatched Slideshow by Aeron Glemann
Swiff for Flash & Javascript interaction
Modular Just download what you need using the MooTools builder
Documentation + Class Support + Object Oriented
Like Mark Said:
I use jQuery for minor things like form validation. I don’t implement a whole lot of JS because in some cases you can do without. It’s a great thing for beginners to JS because their is a large community of jQuery users and there are many scripts already written.
It’s great to get some opinions.
@Jordi: I agree that it’s important to follow other frameworks, even if you only use one. It can provide a lot of inspiration.
@Mark: I agree that jQuery attracts more users because many are newer, although I wouldn’t say (nor did you) that jQuery is only for beginning to novice JS users. Moo isn’t for the new user — they wouldn’t survive.
@Rikki: And there’s nothing wrong with that.
@shin okada: They likely are biased, but I would say I’m surprised at the result. I don’t post a lot about jQuery (not as much as I’d like, at least), but jQuery got more votes.
@Binny V A: Now that’s biased. :)
My framework of choice is jQuery. It’s so powerfull with so much great plugins and animations are so easy to implement.
But in terms of object orientation its a little bit weak. In the comments is mentioned that mootools is good when it comes to object orientation so maybe I’m going to try it someday.
Btw: Happy new Year :)
I’m a mootools guy. I started with P/S and felt like the animations were way to jerky and not enough dev going on with Scriptaculous. I looked at both Mootools and jQuery when I was making the switch and while jQuery had many more user contributed scripts/tutorials alot seemed to have issues with cross-browser compatability and just seemed all over the place from a code point of view.
I was very new to JS (strong background in PHP) and basically chose to go with mootools because the programming style made sense to me. Plus on the forums there seemed to be a strong vision to show users how to properly call and build classes.
Both are good frameworks. I’ve used jQuery on a few projects, but I think that because I know mootools I can write custom classes much quicker and leaner than with jQuery. Just my opinion, though.
Funny how SPRY is never included in any of these lists. I think SPRY is very underrated…I realize it has the Adobe stamp, but I’ve found it very useful in many sticky situations. I’d have to say mootools is my fav…it’s far more fluid and smoother when using effects. jquery is like the Wal-Mart of frameworks as far as I’m concerned.