JQuery for Complete Beginners: Part 1
1stwebdesigner.com
1stwebdesigner.com
I'm sure all the Haskell guys want to gripe about the weekly "monads explained by pictogram" posts. :)
Honestly, I wouldn't worry about it and let the voting take care of it.
I love jQuery, but I come to HN to learn about the internals of jQuery, or some other awesome optimization John Resig has squeezed out of JavaScript, not how to select all the div's in my document.
You're right, this article isn't for HN.
be sure to download the minified version, as it reduces the strain on your server.
Oh really?
The second, and prefered way, is to include it from Google’s Content Delivery Network, or CDN for short. There are two main benefits to doing it this way. Firstly, we can make sure we are always using the most recent version of the library
Utterly useless reason.
and secondly it means your server does not have to load the file and it takes up less bandwidth
...and what about that if every website used Google's CDN, then the library'd already be in their cache and so your page loads faster for them?
However, I stopped reading when I read this:
For example, to select all divs on my page, it’s as simple as: $(‘div’).
This makes me think you're not incompetent, instead you're a hilarious evil genius. What on earth are you doing breaking newbies' brains by typing crap with backquotes? Did you write this guide in MS Word or something?
I think some people use some blog tool that likes to make things "pretty", so it replaces assorted characters with things like smart quotes and such. This pretty much hoses things for anyone trying to cut and paste code.
having said that, i used jquery for the first time last week (to make that greasemonkey script that zaps karma info here) and there's plenty of info out there if you just google for it. so i have to agree it's not really "hacker news".
In java we have things like automatic imports in eclipse, dependency management with maven etc. When I go to the javascript frameworks it seems like these are somehow 'boring' little details that nobody writes about.
This whole thing reminds me of learning Spanish. When you go to a book store there are hundreds of intro to Spanish books. Maybe because they are easy to produce or maybe because most people pick up an intro book and never get beyond that.
What might be nice is if google could be customized to the point where it knows my skill level in various subjects and returns results that I will find interesting.