August 13, 2008
I've kind of fallen into a couple of very client heavy projects and jQuery is turning out to be a key part in these particular projects. jQuery is definitely one of those tools that has got me really excited as it has changed my perspective in Web Development considerably from dreading doing client development to actually looking forward to applying richer and more interactive client principles.
- Prototype and Script.aculo.us
- Yahoo UI Library
Posted by Jeff Atwood
I got sick of those 'browser discrepancies' that came, admittedly, from hand written code because I didn't have TIME to 'learn a framework'. So whatever I had to do I now do it server side.
Perhaps it's foolish, but I don't like having to install outside 'frameworks' to work with a programming language (or framework in the case of .NET) just to get it to work in the first place.
Yes! To those who asked, I write my own code.
You know why? Because I want to understand it. I have been smart enough to focus the functions on doing one thing and I have a few basic functions that deal with the DOM, mouse coordinates, element parameters, etc....that are cross-browser compatible.
I also keep my library files down to about 8k. And I can't tell you how many developers don't know what the hell they're doing. So many js examples on the web are totally bloated (not knocking the above mentioned libraries)
However, I'm at the point where I know enough to be satisfied and will be reviewing the JQuery library.
Please, for the love of programming, understand how it works before using the library that does the work for you if you're going to call yourself a developer!
I've been using a library called SmartClient (http://www.smartclient.com/#_Welcome) from IsoMorphic software for about a year now, and it seems to be the most robust and complete libraries I've used (Dojo, YUI, Prototype). It was originally developed as a proprietary library going back years. It originally used hidden iframes and remote scripting as the pre-ajax transport.
They have open sourced the client library and have kept the Java Server plugins proprietary. Their Java server libraries look incredibly powerful and allows you to drag n' drop server objects into the client designer. Since I work at a .net house I interface it to c# rest services.
My experience :
Prototype fine but a bit bloat and i found some bugs.
Yahoo UI with bugs (or browser incompatibilities?).
Zapatec is awesome, a professional solution but it's bloated and not for free.
And almost any rich text input box is bloated to the extend that you want to use only one x page, in this case i suggest tinymce.
(Hint; follow my link)
So, the only other option _is_ to share. It is called Open Source or Free Software, depending on how you want to look at it and what 'camp' your ranting from.
Believe it or not, an entire Operating System used to power the New York Stock Exchange as well as that Mars Rover and countless other applications, is all created, distributed and made better through coder contributions both individually and corporate.
Those days are over and make me laugh thinking back on it now.
BTW, my opinion about JS Libraries of choice are Dojo for whoppingly massive projects and beautiful complex UI to MooTools which is much more lightweight yet supporting a good set if common UI and FX + Ajax.
In reference to the above post about the picture of a Samurai instead of a ninja?
Ninja's are master of disguise so the obvious explanation is that the picture is of a Ninja disguised as a Samurai.
That's the trouble with everything these days. I want to bone up on web design and I wind up scratching my head not knowing whether to drill down into RoR, Drupal, etc. Each IDE and language has a learning curve, and nobody will tell you up front which ones are worth the trouble.
jQuery truly rocks.
No matter what you do, stay away from ExtJS. ExtJS is run by a bunch of rogues who will milk you dry. They started with a BSD license, then changed to a LGPL license and are now GPL. Moreover they initially said that I would be fine as long as I bought a single license but now state that I would need an OEM license (costs $$$). Don't let those shiny pixels fool you.
all of this words are very best!!!
I'm probably one of the few who still prefer prototype over jQuery!
We take the pain out of hosting the libraries, correctly setting cache headers, staying up to date with the most recent bug fixes, etc.
So not only is the pain gone but if everyone started using them then so would download times for users.
I visit (Site A) which uses a Google hosted version of a library and my browser downloads it. Then when I visit (Site B) which uses the same library I don't have to download it as I cached it when I visited (Site A) and so on!
JS library repositories... nice.
Whenever I do a site with heavy graphics (hosted in my low bandwidth basement) I offshore the acutal images/movies/sound to a faster provider... but to have someone who keeps my JS libs highly available and up to date is downright SWEET!
I was glad to see at least one person thus far (Bart) has mentioned the excellent library MochiKit. I have used MochiKit for a bit over 2 years now and don't know how I would survive without it. MochiKit was written by Bob Ippolito, a Python developer, so the library is heavily influenced by Python, which I haven't found to be too big of a distraction (I don't know much about Python). The functional programming constructs MochiKit provides are very nice and I encourage anyone interested in functional programming to check MochiKit out.
I tried jQuery but didn't enjoy it as much because it lacks some facilities that MochiKit provides (for better or worse), not to mention I am not really a fan of using a fluent interface for this type of work, although I realize it isn't required for using jQuery. Unfortunately, the fluent interface seems to be the default modus operandi of jQuery users.
I concur with Arkh. Once we also have these for CSS, then maybe web development in general won't suck.
Probably a tougher nut to crack, but it's also the more important one.
Where did that chip on your shoulder come from? :P
So to all of the folks whining about non-graceful degradation and the glut of jQuery-like frameworks eroding the pool of m@d j4v45cr1p7 n1/\/j4 5k1lLz: cry me a river, you ossified reactionaries. You sound like COBOL dinosaurs whining about SQL and ADO abstracting away the wonderful ninja-style mechanics of data access and tokenizing. It's called progress.
If you would like to see some of the cool things that JS can really do, check out the sla.ckers.org forum some time.