Rails3 还是 Express.js?谁在开发过程中更有效率?
对于像kijiji这样的新Web项目,如果我想要更快的开发(越快越好),我应该选择哪一个?我了解一些 ruby 和 javascript,但不是精英,也从未在它们上做过项目。编码是我的爱好,而不是我的工作。有什么建议吗?提前致谢。
For a new web project like kijiji, if I want a faster development(the faster the better), which one should I go with? I know some ruby and javascript, but not an elite and never did a project on either of them. Coding is my hobby, not my job. Any suggestion? Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Express 更像是 Sinatra,而不是 Rails。它比 Rails 更小、更简单、更切题。我认为这是一个不公平的比较。
但到底是什么,这是我在这里的想法:
Node 社区正在快速发展,但它仍然远不及 Rails 社区的规模或势头。总的来说,您可能会在 Rails 中找到更多帮助和更多志趣相投的人。 Node 和 Express 需要您自己解决更多问题。
根据我的经验,Rails/Ruby 社区拥有比 Node/Express 更好的测试工具。天哪,他们拥有我见过的所有社区中最好的工具:)
Express 根本没有很好的文档记录。他们页面上的指南是一个不错的开始,但仅此而已。您会发现自己在挖掘代码、晦涩的博客和 github 存储库来寻找信息。
数据访问?它直接内置于 Rails 中,并且是 Rails 的核心部分。 Express 根本不关心你的数据层(同样它更像 Sinatra)。您需要决定要使用哪种类型的数据访问/层,并查看 Node 对此有什么样的支持。
我真的很喜欢 Rails 和 Express。但如果项目规模足够大,我自己可能会选择 Rails。
Express is more along the lines of Sinatra, not Rails. It's much smaller, simpler and to the point than Rails. I don't think it's a fair comparison.
But what the heck, here are my thoughts while I'm here:
The Node community is fast growing, but it's still nowhere near the size or momentum of the Rails community. Overall you'll probably find more help and more kindred spirits with Rails. Node and Express will require more figuring out things on your own.
In my experience, the Rails/Ruby community have much better tools for testing than Node/Express. Hell, they have the best tools for this out of any community I've seen :)
Express is not well documented at all. The guide on their page is a decent start but it's just that. You will find yourself digging through code, obscure blogs and github repos looking for info.
Data access? It's built right into Rails and a core part of it. Express isn't concerned about your data layer at all (again it's more like Sinatra). You will need to decide on what kind of data access/layer you want to go with and see what kind of support Node has for it.
I really like both Rails and Express. But if the project was of any decent size, I'd probably pick Rails myself.
它们都有很大不同,因此这取决于您的目标。我建议使用
Rails
,因为它更加成熟,如果您遇到任何问题,您将获得更好的社区支持。 Rails 的Active Support Core Extensions
还将为您提供大量有用的帮助程序,可以节省您开发 Web 应用程序的大量时间。否则,就选择您最感兴趣的一个。
They are both vastly different so it depends on your goals. I suggest
Rails
as it's more mature and you'll get better community support if you have any issues. Rails'sActive Support Core Extensions
will also give you a ton of useful helpers which could save you a lot of time developing a web app.Otherwise just go for the one that interests you the most.