【翻译】Grails让Java程序员忘掉Rails
从Rails迁移Grails的10个理由(译者:呵呵非常抱歉,此地址我不能访问,很遗憾。)
这里还有另外10个:
1. 视图技术 还比较让人满意
2. 借助于Groovy的联合编译 可以轻松的整合不同的源代码(不需要退回到C来解决性能问题 ;-)
3. 内置的 Web Flow提供了丰富的会话
4. Grails 1.0月底将至
5. IntelliJ IDE的JetGroovy 插件
6. 良好的 插件体系 已经集成了Java程序员所关心的GWT,DWR,JMS等
7. 忙碌的不断成长的Grails邮箱列表 社区,就是揭示停滞不前最好的反例
8. 内置Spring(最基本的企业应用集成技术)
9. 服务层 支持事务的自动分界和范围
更新:
Relevance 的朋友也捐助了一些! 他们更进一步并且简洁地重新组织了我的观点,做的好!让我们摘录一些“胡言乱语”看看:
Grails 1.0 将至-
Ok,非常公平,发布的稳定版本号并不是选择Rails的的一个理由。
内置的Spring -
把此观点放到这里来确实是跟主题相差十万八千里。Rails 还没有渗透到企业呢(译者注:我并不认同),在此我们先排除。 Grails是以另一中方式渗透的,并且还在成长。 因此相对于Rails的单枪匹马来说,这相当程度上归功于Spring已经帮我们解决很多企业问题。
Relevance blog 回复支持了这一观点。
忙碌的不断成长的社区 -
我并不认为Rails的社区很少,只不过它已经很稳定了,成长的空间有限了,而Grails却没有,它将来有可能变得越来越大,关注它吧!
更多图书将至 -
如题, 就算我现在不认为Grails是第二好,但也不是永远达不到
- 14:51
- 浏览 (734)
- 评论 (19)
- 分类: groovy/grails
- 进入论坛
- 发布在 Groovy on Grails 圈子
- 相关推荐
评论
AR是从数据库到POJO,一个是从POJO到数据库。
我比较习惯后者。
2. No distribution problems; runs in many production ready containers
3. Internationalization out of the box (not specifically ignored as DHH does)
4. Transactions actually work, and they include save-points.
5. Not only dynamic finders and counters, but dynamic listOrderBy
6. No green threads (although this may be fixed in Ruby 2.0, around 2010?)
7. Ability to use pessimistic locking out of the box
8. Real-live prepared statements and .withCriteria method
9. Production level test reporting with built in Mocking and Stubbing
10. Search operations are based on Lucene (with a plugin)
1. Hibernate + spring 和AR 哪個好些?這討論夠打一場仗了。我只覺得沒有遺留應用的話,AR 絕對是簡單好用得多。
2. 在 Unix 下都可以用 Rails 。如果堅持要用 Java Container ,用 JRuby on Rails
3. gettext
4. 7. 8. 暫時還未需要在乎這些問題
5. 有甚麼值得高興?
6. 為甚麼在 Rails 中需要用 thread?
9. 重要的不是 Test Report ,而是 Test 有多易寫。用 Ruby 根本不需要 Mock 和 Stub
10. Ruby 的 ferret ,或者Jruby 的Lucene
Grails 的問題在於 Groovy 本身
说白了Grail是也还是过度产品。
呵呵,这也是ActiveRecord跟Hibernate的ORM区别,关注点不同。
就这一点说,我个人觉得还是ActiveRecord好。
rails给我得感觉太诡异,不想弄,而且效率低下,我们以前一个rss解析的性能和java写得差几十倍,搞过这方面得人应该又心得吧,所以如果要想弄rails,至少得精通perl或者python,但是有了java和groovy,这两种语言感觉好鸡肋.
重新发明一个轮子是有代价的,从起步到成熟再到被广大企业接受,这个过程至少我还不能想像
Guice从整体上来说,是根本没法跟SpringFramework比的,至少现在还不行。
最烦的是里边还藏着个spring, 我在想, 为啥G开头的不用guice?
呵呵,这也是ActiveRecord跟Hibernate的ORM区别,关注点不同。
10 Reasons to Switch from Rails to Grails的十条看起来也比较简单,在此就不再翻译了,而且也充满了跟Rails的对比。
其实,我个人的感觉是groovy/grails给我象java一样的亲和力。
10 Reasons to Switch from Rails to Grails
After spending a few years really enjoying Rails it was difficult to bring myself to even try groovy and grails. But my latest contract forced me to look for alternatives, and I'm glad I did. Here are some reasons that you may want to switch...
1. GORM with hibernate/spring and jpa is much better than ActiveRecord
2. No distribution problems; runs in many production ready containers
3. Internationalization out of the box (not specifically ignored as DHH does)
4. Transactions actually work, and they include save-points.
5. Not only dynamic finders and counters, but dynamic listOrderBy
6. No green threads (although this may be fixed in Ruby 2.0, around 2010?)
7. Ability to use pessimistic locking out of the box
8. Real-live prepared statements and .withCriteria method
9. Production level test reporting with built in Mocking and Stubbing
10. Search operations are based on Lucene (with a plugin)
All of these don't make sense for a non-java coder. And my startup time for grails would have be much longer without my prior experience with Rails and Ruby.
One thing I thought I might be giving up was the endless list of valuable gems that make developing in Rails a real pleasure. But after re-reviewing the list of open source products from apache, java source, spring, hibernate, and even Sun (glassfish), I can't think of any gems that I will miss.
发表评论
提醒: 该博客已发表在公共论坛,博客所有留言会成为论坛回贴,留言请注意遵守论坛发贴规则
- 浏览: 79632 次
- 性别:

- 来自: 上海

- 详细资料
搜索本博客
我的相册
共 5 张
链接
最新评论
-
Groovy 1.6-beta-1发布, ...
def f = gsh.find('.', '-name', '*.java', ...
-- by agile_boy -
Groovy 1.6-beta-1发布, ...
多谢了! 不过在groosh里面似乎不能使用通配符 def gsh = new ...
-- by groovyzhou -
Grails 1.0.3发布
to cauxu 如果要深入了解,还是有必要去了解一下Spring和Hibern ...
-- by agile_boy -
Grails 1.0.3发布
使用Grails 需要熟悉Spring hibernate么?
-- by cauxu -
Grails 1.0.3发布
究竟grails 1.1还发不发呀!我最近都偃旗息鼓,学django去了!感觉g ...
-- by zengsun






评论排行榜