Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on jQuery Learning Center. Parent comment
http://learn.jquery.com/performance/append-outside-loop/
I always do something like this:
$target .append($("li") .class("thing") .text(someText));
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.
There are no comments on this comment yet.
http://learn.jquery.com/performance/append-outside-loop/
I always do something like this:
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.