I'm hoping you can give me some good Jedi counsel on this one. My question is, should I learn jQuery or Spry? To my inexperienced eye these appear to be competing technologies; if they aren't and I'm comparing apples to oranges then I apologize. I know you're a big fan of Spry, but I've been hearing a lot about jQuery lately. For example, at CFUNITED I spoke with a number of people about this and they all recommended learning jQuery over Spry.
I picked up jQuery about two months ago. My first real experience was in rewriting the Ajax functionality of ColdFusionBloggers. CFB wasn’t using Spry. It uses ColdFusion 8’s built in Ajax functionality. I’ve continued to play with jQuery since then but certainly would not consider myself as knowledgeable in it as I am with Spry.
So with that said - here is what I think.
I find Spry to be extremely easy to pick up and use. It has a practicality that reminds me a lot of ColdFusion. When it comes to getting data, specifically tabular data (which is something we work with quite a bit) and displaying it on screen, Spry shines. It’s a bit like how ColdFusion makes hitting the database and displaying data extremely easy. Sure ColdFusion does a thousand other things, but I’d probably use ColdFusion even if it only had cfquery and cfoutput.
Spry has other features as well. UI functions and effects. But it’s main focus is on getting data and letting you work with it.
I find jQuery to be not as easy to pick up. However, I think I’m in the minority in that respect. I feel like jQuery can be a bit hard to read at times with it’s use of chaining. By that I mean you will see many examples like this:
That being said - I’m finding jQuery to be more powerful in other areas. Or if not more powerful, just simpler to use. So for example, being able to quickly load some content into a div seems easier in jQuery, now that I’ve gotten over the initial hump. I also like the effects in jQuery a bit better.
The amount of plugins - something jQuery folks brag about - to me isn’t always such a good thing. It seems like if you want a good tab controller, you need to pick from 500 plugins. The jQuery UI project though is working on improving that - which I think is critical for jQuery’s success. As a new user, I don’t want to have to pick a tab plugin. I just want the best of breed. I can appreciate that jQuery will let me pick other plugins, but as a new user, make it simple for me please.