The bit on "clever conditionals" is rubbish as well. Not only are the "better" ways much slower, they're much harder to read. I opened an issue for this one: https://github.com/jquery/learn.jquery.com/issues/258
Having a central resource is obviously a boon to the entirety of the community and it reduces the barrier to entry, and I personally know some designers (who get by on the bare minimum of jQuery knowledge) that would benefit greatly from this service.
http://learn.jquery.com/performance/append-outside-loop/
I always do something like this:
$target
.append($("li")
.class("thing")
.text(someText));
But it's not mentioned at all.Instead they are using the verbose monstrosities from the DOM API which is exactly what we don't want to use because it sucks.
i.dontWantToHaveVerboseMethodsToAppendSomethingToTheDom(please).
Without the easy DOM manipulation, jQuery's not much more than a nice wrapper to deal with AJAX browser differences. There's some serious cognitive dissonance here.
http://learn.jquery.com/performance/
Although the bit about variable definitions on one line under performance is absolute rubbish: http://jsperf.com/variable-definition On chrome it's the same, on Firefox their suggestion is slower. Added an issue, https://github.com/jquery/learn.jquery.com/blob/master/page/...
The best way for a software engineer to learn about jQuery in my opinion is to look at the source code though.