哪个更好的框架Java / GWT或Scala / Lift? [英] Which is better framework Java/GWT or Scala/Lift?

查看:105
本文介绍了哪个更好的框架Java / GWT或Scala / Lift?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始一个新的Web应用程序项目,并且我对GWT(Java)或Lift(Scala)这两个框架感到困惑。所以我想要你的意见哪一个我选择?根据我的项目要求,两者都很好。那么在框架比较的基础上,请告诉我哪个好?

解决方案

我已经发现GWT对客户端来说是一种非常有效的技术,并且将Java和Scala结合起来服务器端。

GWT很吸引人,因为它允许您从前到后用Java编写您的Web应用程序;你用Java编码;并且你在Eclipse中调试你的程序,无缝地从客户端代码到服务器端代码再返回。它确实是一件美妙的事情。



Scala是一门美丽的语言,我像其他人一样爱上它。如果只有基于Scala的GWT变体! 已经在这方面完成了一些工作。渐渐地,我将大部分服务器端代码迁移到Scala,令我非常满意。



如果您要使用Lift,您需要多少JavaScript编码去做?你对JavaScript感到满意吗?您的应用程序的客户端行为有多复杂?对于相当直接的客户端逻辑,我相信Lift会证明令人满意。如果你想构建一个类似于桌面的应用程序,并且/或者你特别关心从应用程序中挤出最后一滴速度,那么请使用GWT。无论哪种方式,你都不会失望;他们是伟大的技术投资。



考虑到对Scala的IDE支持仍然很新颖。坦率地说,我认为,使用Scala可能会看到的任何生产力的提升都已经在Scala IDE for Eclipse的各种浪费时间的努力中丧失了。这个故事在IDEA中可能稍微好一些,但不会太多。

可能你可能会分配一定的时间来探索Lift和GWT,然后做出自己的决定根据你在那段时间能够得出的结论。遵守纪律,坚持你已经放下的时间框。


I wanted to start a new web application project and I am confused between two frameworks that is GWT(Java) or Lift(Scala). So I want your opinion which one I choose? Both are good according to my project requirement. So on the basis of frameworks comparison please tell me which is good?

解决方案

I have found GWT to be an extremely effective technology for the client side, and use a combination of Java and Scala on the server-side.

GWT is attractive because it allows you to write your web application in Java from front to back; you code in Java; and you debug your program in Eclipse, seamlessly stepping from client code to server-side code and back again. It truly is a wonderful thing.

Scala is a beautiful language, and I'm in love with it like everyone else. If only there was a GWT variant based on Scala! Some work has been done in that direction already. Gradually, I've migrated most of my server-side code to Scala, to my great satisfaction.

If you were to use Lift, how much JavaScript coding would you need to do? Are you comfortable with JavaScript? How complex is the client-side behaviour of your application to be? For fairly straight-forward client-side logic, I'm sure that Lift will prove satisfactory. If you want to build a very desktop-like application, and/or you are particularly concerned to squeeze the last drop of speed from your app, go with GWT. Either way, you'll not be disappointed; they are great technologies to invest in.

Consider too that IDE support for Scala is still very nascent. Frankly, I think that any productivity gains that I might have seen from using Scala have been lost on various time-wasting struggles with Scala IDE for Eclipse. The story may be marginally better in IDEA, but not by much.

Perhaps you might allocate yourself a fixed amount of time to exploring Lift and GWT, and make your own decision based on what you are able to conclude in that time. Be disciplined and stick to the time box you've set aside.

这篇关于哪个更好的框架Java / GWT或Scala / Lift?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆