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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask N: node.js best practices?

7 点作者 rpwilcox超过 13 年前
I'm an experienced Rails programmer looking at a potential future client project in Node.js.<p>I've played around with node.js a little, using node.js at a very low level (no frameworks, less than 100 LOC).<p>Obviously, that style of development won't work on a real project.<p>Node.js seems to mostly "pick your components and go". (With the exception of maybe Railroad.js). Pick your components is OK with me (I've been doing web work since before Rails got popular, so I'm used to this style).<p>But I also want to make sure my best practices from the Rails world stay with me. Database migrations and testing are a few of the areas where Rails has a clearly defined best practice, but things seem murkier on the node.js side.<p>Also thinking coffeescript, to reduce boilerplate.<p>So, node.js hackers of HN: What are your best practices? For example, what auto-reloading tool do you use? Testing framework? ORM? (or no ORM?), view/template system?<p>Any other advice for a programmer whose been around the block a number of times (C++, Python, Cocoa, Ruby) and wants to start a new node.js project off right?<p>(Book recommendations are also great. I looked at the current crop of books, but I almost want a <i>Rails Recipes</i> or <i>Python Cookbook</i> style of book for node, but don't see one)

1 comment

jalanco超过 13 年前
I would recommend that you ask this question on the nodejs Google group to get a better response (<a href="https://groups.google.com/forum/#!forum/nodejs" rel="nofollow">https://groups.google.com/forum/#!forum/nodejs</a>) or Stack Overflow.<p>Update: Also, the good folks at nodejitsu have compiled a great resource at <a href="http://docs.nodejitsu.com/" rel="nofollow">http://docs.nodejitsu.com/</a><p>And more links:<p><a href="http://www.readwriteweb.com/hack/2011/04/6-free-e-books-on-nodejs.php" rel="nofollow">http://www.readwriteweb.com/hack/2011/04/6-free-e-books-on-n...</a><p><a href="http://howtonode.org/" rel="nofollow">http://howtonode.org/</a><p><a href="http://nodebeginner.org/index.html" rel="nofollow">http://nodebeginner.org/index.html</a><p><a href="http://www.manning.com/cantelon/" rel="nofollow">http://www.manning.com/cantelon/</a> (node.js in action meap)<p><a href="http://stackoverflow.com/questions/2353818/how-do-i-get-started-with-nodejs" rel="nofollow">http://stackoverflow.com/questions/2353818/how-do-i-get-star...</a>