TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Node.js: the good, the bad, the ugly - why the hell would you use it?

13 pointsby zappanalmost 12 years ago

3 comments

rpedelaalmost 12 years ago
I strongly disagree with not using Node.js for &quot;server-side web app with relational DB behind&quot;. I have used both the PostgreSQL and MySQL modules and they do just about everything you need. There is a module called &quot;any-db&quot; which makes transactions and connection pools a breeze.<p>It seems the author is specifically talking about ORMs. I have not used them in Node.js so maybe they are immature. Saying &quot;don&#x27;t use Node.js ORMs&quot; is very different to &quot;don&#x27;t use Node.js with relational DBs&quot;. The former may be correct, but the latter certainly is not.
评论 #6244496 未加载
评论 #6245624 未加载
zappanalmost 12 years ago
Own a business, starting up, or just want to convince your client, boss or the stakeholders why Node.js is the right way to go? Are you sure you are making the right choice, or need a supporting evidence? Lots has been written about Node.js, but people tell me they couldn&#x27;t find it summarized in one place, so here it is - the good, the bad and the ugly of Node.js - if you fit in, just use it!
anonyfoxalmost 12 years ago
I&#x27;d add that node.js is even a good enough tool for heavy computation. Do not crunch the numbers in the main event loop, but spawn a worker-cluster and you&#x27;re fine.<p>Do not forget that the raw speed of the V8 (not to mention C++ modules for more speedup) outperforms other current scripting languages like ruby.