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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Why I Won't Switch To Go from Node.js

24 点作者 hiteshtr大约 11 年前

10 条评论

couchand大约 11 年前
The first three complaints addressed are far too common for how ridiculous and unfounded they are, and it&#x27;s nice to see them addressed head-on.<p>The fourth is simply confusing. If you&#x27;re not sharing code between the client and the server, you&#x27;re missing something big (though he does say it might just be the projects he&#x27;s on).<p>Modern business software is faced with two competing forces: bulletproof integrity and responsive interaction. Making your application bulletproof requires that business rules are evaluated on the server, but making it responsive requires those same rules to be evaluated on the client. Think about credit card validation: it&#x27;s infuriating to wait for a round-trip to the server just to discover you&#x27;ve mistyped your number, but that doesn&#x27;t mean the server can simply trust the client.<p>At the moment Node.js + browser JavaScript provides the only solution I know which allows you to write your business rules once and only once. Anything else is crufty.
评论 #7485786 未加载
redbad大约 11 年前
&quot;I really like JavaScript&quot; might be a compelling personal narrative, but it makes a pretty uninteresting submission to Hacker News :(
DigitalSea大约 11 年前
As a web developer the number #1 argument I use against those who say, why not a language like Go or Ruby is simple: I use Javascript on the front-end, why not the backend as well? Being able to handle everything from authentication to view rendering using the one language is a powerful thing.<p>As for the last paragraph in the article, Go in my opinion is already pretty popular. It might not be mainstream like Node.js, but it has a pretty loyal following. As always, the language isn&#x27;t going to determine how successful something is.<p>Look at Facebook, the worlds most popular website was built in PHP. Building it in a language like Ruby or Python wouldn&#x27;t have made a difference to how successful it is.<p>Use whatever language you feel comfortable using, don&#x27;t just use a language because everyone else is frothing at the mouth about it. I can&#x27;t stress this enough, use whatever language you feel comfortable using and know the best.
评论 #7487013 未加载
zachorr大约 11 年前
The second half reads a lot like &quot;I can write everything in Javascript so why would I need another language&quot;
mathrawka大约 11 年前
Honestly, does a context switch exist for switching between frontend JS and backend Go? I am not trying to tout my own horn here, but I don&#x27;t have problems with that.<p>And this is coming from someone who has used Node.js for multiple startups in the past 2.5 years.
评论 #7485540 未加载
samnardoni大约 11 年前
Honest question. Why do people write posts like these?
评论 #7498256 未加载
sseveran大约 11 年前
javascript is not perfectly readable. For all the same reasons that other languages with poorly integrated async features are. Ahem C#, etc...
评论 #7485764 未加载
评论 #7485537 未加载
anonfunction大约 11 年前
Different needs call for different stacks. We&#x27;ve moved a lot of our systems to node.js for reasons outlined in this article but at the same time Go makes more sense for mission critical infrastructure at scale where performance matters.
NateDad大约 11 年前
I&#x27;m curious as to what toolchain he thinks he needs? I write Go all day. I don&#x27;t have a &quot;toolchain&quot; unless you count version control and go build&#x2F;go get.
评论 #7499506 未加载
noname123大约 11 年前
I love Java and I use GWT so I avoid context switching to Javascript and plus it came out of Google like Go, so it&#x27;s pretty rad.