与 Grails 相比的提升
Lift/Scala 最近受到了很多关注。我过去曾使用过 Grails(并且发现它非常方便),我想知道是否有人尝试过这两种方法以及他/她对它们的看法。它们中的一个更适合一种场景,而另一种更适合另一种场景,或者它们并肩竞争来解决同样的问题?
Lift/Scala is getting a lot of attention lately. Having worked with Grails in the past (and finding it quite handy BTW), I'd like to know if there's anyone who has tried both and what's his/her opinion about them. Is one of them better suited for one kind of scenarios whereas the other is better for other kind, or they compete shoulder to shoulder to solve the same problem ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您正在构建 CRUD 应用程序并且您对 Grails 感到满意,那么就坚持使用它。
如果您优先考虑以下任何事情,那么 Lift 将会更好:
Net-net,Lift 不是另一个我-太MVC框架。这是不同的东西,也是更好的东西。
If you're building a CRUD app and you're comfortable with Grails, then stick with it.
If any of the following things are priorities for you, then Lift is going to be better:
Net-net, Lift is not another me-too MVC framework. It's something different and something better.
事实上,Lift 很难开始(文档可以更好,没有足够的范式)和 Scala 也是如此。无论如何,这并不容易,但在我看来,它是长期回报的。我同意 dpp 的回答,只是想添加七件事
Take as a fact that Lift is hard to start with (Docs could be better, not enough paradigms) and Scala too. Anyways it's not rails-easy but IMO it pays off long-term. I agree with dpp's answer, just wanted to add seven things
虽然这里比较的是不同的一篮子水果,但我认为您可能会喜欢 David Pollak(“电梯创造者”)的回应:
为什么我要使用 Scala/Lift 而不是 Java/ Spring?
关于 Lift 需要记住的一件事是它是一个基于连续的框架。
While this compares a different basket of fruit, I think you may enjoy David Pollak's ("Lift creator") response:
Why would I use Scala/Lift over Java/Spring?
One thing to remember about Lift is that it is a continuation-based framework.
Grails 是一个非常强大的框架,比 Lift 更受欢迎。
我也觉得Groovy比Scala容易学很多。
Lift 并不比 Grails 更安全
Lift 可能比 Grails 更快(也许,我还没有测试过这一点)
除了 Hibernate 和 Grails 之外,您并不排除使用 Ajax、Comet 或 ORM
查看可用于 Grails 框架的插件以了解更多信息信息:
http://grails.org/plugins/
Grails is a very powerful framework with much more uptake than Lift.
I also feel that Groovy is much easier to learn than Scala.
Lift is not more secure than Grails
Lift may be faster than Grails (maybe, I haven't tested this)
You are not precluded from using Ajax, Comet or ORMs other than Hibernate with Grails
Check out the plugins available for the Grails framework for more info:
http://grails.org/plugins/