So
... how is the jquery version superior in any way to the plain vanilla javascript version?
It's shorter, both in original code size and in the number of documentation pages required to understand it.
Sorry, there is absolutely no reason to use that poorly-written pile of garbage.
I disagree. So do most of the posters in the thread you referenced.
As for a reference, you might start with JavaScript: The Good Parts.
Thanks. I assume you mean this one. I'll check it out.
In jquery, if I wanted to do something with each element with a particular tag contained inside another dom element, I'd do something like this:
$("#myid input").each(doSomething);
Or perhaps like this:
$("#myid input").each(function(){$(this).doSomething();});
In bare javascript I'd have to write a loop, either recursively or iteratively.
Anyway, I don't see javascript libraries going away anytime soon. Bloated? Maybe. Useless? Depends on your point of view. If you're really dedicated to luring programmers away from jQuery, I suggest you write (or recommend) a reference such as I suggested. Otherwise, you're just making noise in an inappropriate forum.
In 1985, I took a Fortran course at EdCC. Their p-System-based compiler took a full hour to parse a hundred-line program and report (only) the first syntax error. So I wrote and debugged all my Fortran programs in Turbo Pascal, which compiled the same hundred-line program compiled in less than a second.
That's over three orders of magnitude difference between "portable" and native code. Today the difference is between one and two orders of magnitude, but the cost is still prohibitively expensive for many applications.
You should write (or recommend) a tutorial called "JavaScript for Jquery developers" which shows the standard cross-platform-compatible JavaScript equivalent to the major JQuery functions.
+1 Funny.
They can have my access logs when they pry them out of my cold, dead fingers.
Seriously -- I run a small website and I'm just not gonna bother installing special software to purge certain IP addresses from my logs upon request, then forget that I purged those IP addresses (because that would be tracking), then somehow un-forget them on a regular basis so I can purge them again, then forget them again,
I agree with Google, Facebook, et al. The bill is quite simply unenforceable, and thus has no force of law, whether passed or not.
I haven't paid into the medical system for over ten years, and am looking forward to defending myself against criminal charges for my "negligence". During the same period, my neighbor has received three elective surgeries, courtesy of the health care system, and is under no such danger of prosecution. It's not just the doctors who are playing it safe.
I haven't paid into the medical system for over ten years, and am looking forward to defending myself against criminal charges for my "negligence". During the same period, my neighbor has received three elective surgeries, courtesy of the health care system, and is under no such danger of prosecution. It's not just the doctors who are playing it safe.
I loved my Pinto. I *miss* my Pinto.
In related news, the University of Michigan received a research grant from EYE Tech.
He has not acquired a fortune; the fortune has acquired him. -- Bion