I'm not a huge fan of the JavaScript frameworks that are out there today. I think a lot of the libraries could be written better, are chosen for a project because of favoritism rather than understanding the requirements of the problem at hand, and some JavaScript developers come to depend on them too much to the point where they are jQuery or dojo programmers, not JavaScript programmers. Alas, that is one person's opinion and the fact is JavaScript frameworks are a part of life. So, here's a new take on an old question: Which JavaScript framework is the least evil? That is to say, which library most closely adheres to best practices? Considering jQuery for a moment, it employs browser sniffing and doesn't use new
for constructors. It is very popular and some may judge it the best by some standard, it disregards what has come to be accepted as best practices in those cases.
Edit: Please just don't say jQuery or YUI or dojo or whatever. Please say which but also provide examples.