7 ms·
JQuery's latest stab at competence
- CalmQuiet 17y agoA Feb 6, 2009, dissing of Resig. (if that's what your web dev world needs)
- billymeltdown 17y agoYeah, I'm not feeling it either. Although it is funny when the flame baiters start calling each other "wannabe" in the thread.
- jawngee 17y agoAll this link says to me is that the people who hang in comp.lang.javascript are all a bunch of smug pricks. David Mark comes across like a complete ass. And while his critique of jQuery might have some validity, his tone and attitude are such a turn off, and the consequence of him being "right" is not really all that important in the grand scheme of things. People build cool shit with jQuery. That's all that is important. While "My Library" might be better, rate of adoption is sometimes more important than correctness. Specifically for something as trivial as javascript. If it's really important to him, why isn't he participating in making jQuery better since "My Library" is used by virtually nobody. From the read, it seems like his ego is getting in the way. And it's funny that, considering he hasn't done much noteworthy otherwise.
- eugenejen 17y agojQuery has a pretty uniform programmer interface. I guess just that one is the killing feature than other library. The dom method is much difficult to be remember. So just wait until John Resig to improve the code. He helped to start an movement. When Linux came out in 91, my friend said why did not I use other unix on pc but that crap. But almost 20 years later, Linux is alive and kicking... Worst is better. As long as it propagates and more users bases, the improvement will come one day. Don't forget technology is also an human activity. So social aspect of the technology acceptance is part of the equation.
- DavidMark 17y ago"jQuery has a pretty uniform programmer interface. I guess just that one is the killing feature than other library. The dom method is much difficult to be remember." Yes, jQuery's uniform interface is useless to abstract varying environments. That's part of what is killing it. If you can't detect when a method will work, you are doomed to exceptions in environments unknown to John Resig (which would seem to include all versions of IE.) No, John Resig didn't start any movement. jQuery is not Linux. It's just a stupid little script.
- ilitirit 17y ago> All this link says to me is that the people who hang in comp.lang.javascript are all a bunch of smug pricks. From my experience, that can be said of comp.lang.* I haven't been to any of the comp.lang groups in a while though, but it doesn't look like I've missed much. I'll give the regulars there this much: most of them really know what they're talking about. If I were John Resig, I'd take that message to head, not heart.
- axod 17y agoInstead of attacking them with "smug pricks" and "complete ass", read their reasoning. Look at the code. Do you want your js to be creating functions all the time? Is it worth it? My personal stance, is that you simply don't need a javascript library. The browser differences are very small, and not rocket science to work with. Learning javascript > learning jquery | prototype | etc I agree though, people build cool stuff with jquery. This thread is just people pointing out that if you care how fast your webapp runs, or how much memory it uses, then using a library is probably a bad idea.
- jemmons 17y agoInstead of attacking them with "smug pricks" and "complete ass", read their reasoning. I don't wanna. Because they're smug pricks. Next?
- axod 17y agoCome on. If you put code out there, you're going to have "smug pricks" showing you why it completely sucks. You can either take on board their criticism, or ignore it. I'd say it's worth taking it on board to improve the code. Regardless of how smugly it's put.
- knowtheory 17y agoorganization is politics. If someone is so obnoxious that they can only contribute in a manner as poisonous as this, then what the hell is the point of including them? It's not worth the collective psychic grief. There's enough fighting amongst people who mean well and are trying to steer projects in the best manner they can. If someone is choosing the be an asshole, then they can get lost. There's no excuse for the abuse.
- Semiapies 17y agoFor that matter, it's very rare that any random asshole really is some special snowflake of a talent who can't be profitably replaced by someone with social skills.
- DavidMark 17y ago"All this link says to me is that the people who hang in comp.lang.javascript are all a bunch of smug pricks." I don't see that. "David Mark comes across like a complete ass. And while his critique of jQuery might have some validity, his tone and attitude are such a turn off, and the consequence of him being "right" is not really all that important in the grand scheme of things." Being right doesn't matter? That's some scheme you have there. "People build cool shit with jQuery. That's all that is important. While "My Library" might be better, rate of adoption is sometimes more important than correctness. Specifically for something as trivial as javascript. If it's really important to him, why isn't he participating in making jQuery better since "My Library" is used by virtually nobody. From the read, it seems like his ego is getting in the way. And it's funny that, considering he hasn't done much noteworthy otherwise." You don't seem to know anything about My Library (or David Mark for that matter.) Why don't you do some reading and try again.
- hufnagel 17y agoBeing respected doesn't matter? Were you dissed as a young programmer? Did somebody take your beautiful 'hello world' creation and laugh in your face at its inefficiency? What do you gain exactly, by coming across as a 'smug prick' or a 'complete ass'?
- jemmons 17y ago"Being right doesn't matter? That's some scheme you have there." Yet it's the overwhelming opinion of many here. Just look at these comments. We're trying to do you a favor, man. Let me offer you the constructive criticism you didn't offer in your post: If you propose a theory in the spirit of honest debate and camaraderie, and that theory is proven to be incorrect, no one remembers that you were the dude with the "wrong theory". All they remember is the right theory and that you helped to frame it. On the other hand, if you put forth a theory like an asshole, and that theory is proven to be correct, you're still an asshole. Sure, this probably doesn't seem fair from a meritocratic point of view. But it's one of the laws of the world we live in, same as gravity. I think you'd end up encountering a great deal more success if you started factoring it into your equations.
- 17y ago
- loincloth 17y agoJust a great big yawn. Use it or don't. Next.
- dxjones 17y agoIf jQuery is open source, and you look at the source, and you see room for improvement. ... improve it. ... or make a constructive criticism pointing out how it could be improved and someone else will do it. Could the code be faster? Sure. People often analyze libraries, identify a critical path that is limiting performance, and then zero in on the offending the code ... and then improve it. I think it's find the author goes on a bit of a rant. Perhaps he'll inspire a few coders (or Resig himself) to address some of the criticisms by revising the code, and then everyone benefits.
- DavidMark 17y agoUnfortunately, I've talked to Resig in CLJ. He tried to address some of my concerns. It took almost two years and the effort was still a complete failure. He doesn't know what he is doing and he is afraid to ask.
- minalecs 17y agoperfect example of .. jealousy. His points may be valid, but he needs to show some respect for what Resig has accomplished.
- DavidMark 17y agoYou've got that backwards. You can find interactions between Resig and myself in CLJ. Might make things clearer for you.
- hufnagel 17y agoAwww, c'mon. We're intelligent people here. Resig isn't running around crying about the way you've written... er... what was it you've done again? I know you're dying to be asked.
- Semiapies 17y agoI wouldn't say this is a reddit link, naturally, but perhaps there needs to be an aggregator for random bits of nerd-rage with no significant value.
- DavidMark 17y agoJoe Six-pack, late to the ball again. http://www.reddit.com/r/programming/comments/7vul9/some_technical_criticism_of_jquery_code/ http://www.reddit.com/r/programming/comments/7vul9/some_tech...
- JoeSchmoe2 17y agoJoe Six-pack, late to the ball again. http://www.reddit.com/r/programming/comments/7vul9/some_tech.. http://www.reddit.com/r/programming/comments/7vul9/some_tech....
- embeddedradical 17y agohe pointed out a few good places where the code could be cleaned up. resig: i hope that you see this post, ignore the flamebait, and notice how the suggestions don't look too bad to fix up. also, thanks for jquery -- it's awesome.
- jblomo 17y agoWhat's the best alternative? I've heard much the same things about Prototype.
- DavidMark 17y agoBest alternative for what? Think of both scripts as manure, but from different animals.
- hufnagel 17y agoThat's your bottom line then? Pure Javascript or nothing? 'Cause that would tend to back up the 'smug prick' and 'complete ass' assertions I've seen thrown in your direction, IMHO.
- unconed 17y agojQuery's own code is not so developer friendly, sure, but that doesn't change the fact that it has revolutionized JavaScript development in the browser for a lot of people. Before you criticize it, it also helps to understand jQuery's design goals: to be small, to be fast, to get out of your way and just "do what you mean". A lot of its own code is hard to read exactly because it makes the code that uses it ridiculously compact and easy to read (e.g. liberal use of function overloading). In order to keep the library small, some of this code is not as clear and verbose as it should probably be. However, jQuery is made by people who live and breathe JavaScript code. They use patterns that can look utterly foreign to people used to more conventional imperative languages (like logical operator short circuiting), but which are actually more readable if you know what it's doing. As for performance, he points out a lot of things like "creating tons of functions on the fly" and "instantiating new objects for everything", but he doesn't actually prove that any of these points cause performance issues. It should be as simple as rewriting the code to get rid of these 'obvious' deficiencies and then benchmarking it. Which this person has not done. I'll trust John Resig, the guy who is being paid by Mozilla to work on JavaScript full time, over some random internet dude with a chip on his shoulder.
- DavidMark 17y ago"However, jQuery is made by people who live and breathe JavaScript code. They use patterns that can look utterly foreign to people used to more conventional imperative languages (like logical operator short circuiting), but which are actually more readable if you know what it's doing." LOL. Did you actually read the review? Perhaps you should read my review of your review (of my review.) http://groups.google.com/group/comp.lang.javascript/browse_thread/thread/e0d53cbf50f6e7d7# http://groups.google.com/group/comp.lang.javascript/browse_t... "I'll trust John Resig, the guy who is being paid by Mozilla to work on JavaScript full time, over some random internet dude with a chip on his shoulder." You are deluded. See my review.
- hufnagel 17y agoIf jQuery's so inefficiently written, I dread to think how the others are written based on the fact that jQuery is approximately a squillion times quicker. Bigger picture David Mark, bigger picture.