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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

React+Flux can do in just 137 lines what jQuery can do in 10

9 点作者 graffitici超过 9 年前

2 条评论

lhorie超过 9 年前
Kinda linkbaity. As commenters in the article pointed out, the jQuery code omits the HTML and the React port has some functionality that is not present in the jQuery version, so the LOC comparison in the title is pretty meaningless.<p>The conclusion is that for a tiny one-off tool that can be banged out in 20 minutes, a big framework like React&#x2F;Flux is completely overkill. But for large codebases where maintainability is a big issue, then React&#x2F;Flux can be extremely useful (considering that&#x27;s exactly the problem React&#x2F;Flux try to address).<p>Am I the only one who thinks this stuff ought to be obvious?
评论 #10400116 未加载
brackcurly超过 9 年前
I think this blog post is pointless. Of course every abstraction adds some overhead at first. If your problem is simple enough to fit in a few lines of code you don&#x27;t have to think a lot how you structure it.