TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

JQuery's latest stab at competence

9 点作者 scarface548将近 16 年前

9 条评论

jawngee将近 16 年前
All this link says to me is that the people who hang in comp.lang.javascript are all a bunch of smug pricks.<p>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.<p>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.
评论 #627154 未加载
评论 #627191 未加载
评论 #627153 未加载
评论 #627990 未加载
dxjones将近 16 年前
If 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 <i>how</i> it could be improved and someone else will do it.<p>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 <i>improve</i> it.<p>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.
评论 #628010 未加载
unconed将近 16 年前
jQuery'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".<p>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.<p>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.<p>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.<p>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.
评论 #628002 未加载
CalmQuiet将近 16 年前
A Feb 6, 2009, dissing of Resig. (if that's what your web dev world needs)
评论 #627086 未加载
embeddedradical将近 16 年前
he pointed out a few good places where the code could be cleaned up.<p>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.
minalecs将近 16 年前
perfect example of .. jealousy. His points may be valid, but he needs to show some respect for what Resig has accomplished.
评论 #628012 未加载
Semiapies将近 16 年前
I 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.
评论 #629117 未加载
评论 #628014 未加载
jblomo将近 16 年前
What's the best alternative? I've heard much the same things about Prototype.
评论 #628015 未加载
loincloth将近 16 年前
Just a great big yawn. Use it or don't. Next.
评论 #628006 未加载