Lift compared with Grails

拜拜、爱过 提交于 2019-12-03 14:07:04

问题


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 ?


回答1:


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:

  • Security -- Lift is more secure than Grails
  • Performance -- Lift is faster than Grails because Scala is faster than Groovy
  • Ajax -- Lift's Ajax support is simpler and easier than Grails
  • Comet -- If you want to build server-push apps, there's nothing better than Lift
  • Choice of ORMs -- Lift is not tied to a single ORM, so use anything you want

Net-net, Lift is not another me-too MVC framework. It's something different and something better.




回答2:


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




回答3:


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.




回答4:


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/



来源:https://stackoverflow.com/questions/3105775/lift-compared-with-grails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!