(Previous: Stuck in the Middle)
I love the slogan for jQuery: “write less, do more”.
With jQuery, you can substitute a drop down menu for a regular menu (for easier access on tiny cell phone screens), create a slideshow “carousel” of images on a homepage to catch a visitor’s attention, add/remove/enable/disable buttons depending on user input in a form, and create automatic transitions between webpages when users click on a menu tab.
I’ll start with the bad news: while there are good tutorials for learning one section or another of the jQuery library, they don’t always fit together neatly. One instructor will spend a lot of time setting up the code a certain way, and another instructor will have a completely different approach, and it can get confusing (More on this next post!).
But here’s the good news: sometimes learning from multiple, even contradictory, perspectives can help you dig deeper to find and master the material for yourself.
I started my jQuery experience at the Codecademy jQuery Course. I thought this course did a great job of going through each part of the jQuery code slowly, and explaining the vocabulary in a way that was understandable (including the “magic jQuery selector” that you use ALL THE TIME).
There is a followup course as well: Make an Interactive Website. I would have been completely lost on this one without the intro course, but I thought it was within reach after I finished the other tutorial. Plus it was fun to make a carousel navigation, like I’ve seen on hundreds of sites before.
Because I had already been through two Ruby tutorials by the time I did this one, I could see what concepts this one was aiming for pretty easily, and learning a second programming language was much easier than learning a first.
The tutorial went through the same basic concepts that the Ruby tutorials had: numbers, strings, functions, variables, for-loops, while-loops. Not much new there, but I got to practice writing it all in a new way, which meant that I really understood the concepts this time through. And the explanations were pretty good.
But there were places where, if I had never tried programming before, I would have felt frustrated or lost. For example, there is a complex “game” that you create in one of the exercises, but because it never asks for any user input, it feels kind of weird… you just click a button and it tells you if you got eaten by a dragon or not. Also, the end sections on Objects were a bit confusing for me, and that was after all the other tutorials as well.
So I can’t wholeheartedly recommend this tutorial, but it was fine for a start, especially if you modify the exercises to make them more fun.