与 Grails 相比的提升

发布于 2024-09-07 12:07:58 字数 126 浏览 10 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

回忆追雨的时光 2024-09-14 12:07:58

如果您正在构建 CRUD 应用程序并且您对 Grails 感到满意,那么就坚持使用它。

如果您优先考虑以下任何事情,那么 Lift 将会更好:

  • 安全性 — Lift 比 Grails 更安全
  • 性能 — Lift 比 Grails 更快,因为 Scala 比 Groovy Ajax 更快
  • — Lift 的 Ajax 支持更简单而且比 Grails
  • Comet 更容易 -- 如果你想构建服务器推送应用程序,没有什么比 Lift 更好的了
  • ORM 选择 -- Lift 不依赖于单个 ORM,所以可以使用任何你想要的东西

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:

  • 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.

千年*琉璃梦 2024-09-14 12:07:58

事实上,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

久而酒知 2024-09-14 12:07:58

虽然这里比较的是不同的一篮子水果,但我认为您可能会喜欢 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.

执笔绘流年 2024-09-14 12:07:58

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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文