<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d4684235500622716427\x26blogName\x3dCaiwangqin\x27s+blog\x26publishMode\x3dPUBLISH_MODE_HOSTED\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://blog.caiwangqin.com/search\x26blogLocale\x3dzh_CN\x26v\x3d2\x26homepageUrl\x3dhttp://blog.caiwangqin.com/\x26vt\x3d3393395200455623441', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe", messageHandlersFilter: gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER, messageHandlers: { 'blogger-ping': function() {} } }); } }); </script>

Caiwangqin's blog

Focus on Life, Cloud Service, Smart Hardware, Architecture, Technic and beyond…

爱上Groovy,亲密还需要时间

2005年12月9日星期五

Groovy 是超级明星开发人员 James Strachan 和 Bob McWhirter 发明的,它是一种敏捷开发语言,完全以 Java 编程 API 为基础。


引用自

Groovy 通过以下方式落实了这些宗旨:


使开发人员不用编译。

允许动态类型。

使合成结构容易。

使其脚本可以在普通 Java 应用程序中使用。

提供一个 shell 解析器。



更多相关Groovy,请访问my delicious : http://del.icio.us/caiwangqin/Groovy


个人认为,Groovy的确是一种不错的语言,但要达到使用目的,还需要解决以下两个问题:

1、良好的IDE工具,目前Eclipse plugin和UltraEdit plugin太弱智

2、对某些新特性的支持并不是太理想,这一点Mike Spille 在Groovy : First Contact中有讲到,如:


引用自

The main purpose of the above quote is apparently to stun the user into a stupor by firing alot buzz words at you, and to avoid telling you what Groovy is at all costs. What it probably should say is, were I the publicist for the team, would be:


The Spille Version Groovy is a new scripting language built on top of the standard Java 1.4 JVM. It combines features from languages like Python, Ruby, Smalltalk, and Perl in a very Java-like syntax which has full interoperability with Java classes and code. The language looks like a close cousin to Java, but implements decidedly non-Java constructs such as Closures, regular expressions, here-documents, and optional relaxation of static typing as first class language constructs.


You might say that Groovy feels an awful lot like Ruby, but looks far more like Java - and most importantly Groovy code can directly call Java code, and vice versa, and Groovy itself compiles down to plain old Java bytecodes.



标签:

posted by Caiwangqin, 21:37

0 Comments:

发表评论

订阅 博文评论 [Atom]

<< 主页