<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    First they ignore you
    then they ridicule you
    then they fight you
    then you win
        -- Mahatma Gandhi
    Chinese => English     英文 => 中文             
    隨筆-221  評論-1047  文章-0  trackbacks-0

    Who Is Using Groovy


    Stelligent: How are people using Groovy- what projects are you aware of that rely on Groovy?

    Guillaume: In fact, we don't hear that much about how people use Groovy in their projects. People are usually more talkative when they have problems, rather than when they're happy with something!

    Most of the time, they embed Groovy in their J2EE application as a scripting language: they like using our Groovlet servlets and our template engines. Some others use Groovy as a shell language replacement, or as a testing platform because tests are easy to write in Groovy. A few persons use Groovy as a prototyping tool to create demos for their customers. There are many use cases, really.

    Every six months or so, I try to make a small survey on the Groovy mailing lists, to know what people think about Groovy, and what they do with it. There are some funny cases, like a guy who used Groovy to control his homemade robots, and he reported that using Groovy really saved him hundreds of lines of code and he could concentrate more on the AI logic of his robots than on the boring and tedious coding tasks!

    To name a few projects that already embed Groovy successfully, you may have a look at:
    • Drools: a rule engine that allows you to write your conditions and consequences in Groovy.
    • The RIFE MVC/Web framework also permits you to write actions in Groovy or to configure the webapp layout and flow.
    • The eXo Platform (Portlet/Service container) uses Groovy in its core, and you can even write some Portlets in Groovy.
    • XWiki, a wiki engine and application platform, embeds Groovy for advanced wiki programming, like writing plug-ins or macros, or for pages containing some logic, etc.
    Many other projects utilize Groovy as a dynamic extension mechanism. These examples are the best examples I know. I've listened to a few guys discretely whispering to me that they have deployed Groovy in their apps for months already, even with old betas of Groovy which weren't really considered mature enough!
    Stelligent: Yep, I've heard the same thing! As we all know, Groovy isn't the only scripting language available for Java. If someone in the Java community was looking at adopting a scripting language for use and they were comparing Groovy and Jython- what would you say?

    Guillaume: It's hard for me to compare Groovy with other languages. I haven't played much with the alternatives, and I guess I'm pretty biased :-)

    Before Groovy arrived on the Java-place, the other scripting languages were a bit stalled, without any real innovation going on, or sustained activity. Fortunately, Groovy renewed the interest in the field, and thankfully, development was reborn on Jython, BeanShell or JRuby. That's a very good thing!

    Now, regarding the choice, except if you need particular Groovy features not available anywhere else (like our builders, or handy libraries for SQL, etc.), I think the decision is around the knowledge of the developers: If the developer is very familiar with Ruby or Python, it's certainly a good idea to choose the Java-esque counterpart. If you prefer staying as close as possible to Java, choose BeanShell, or if you're a JavaScript guru, don't go further than Rhino.

    Some compelling features may direct you to Groovy, and its Java-ish syntax may be appealing to you. Choosing a scripting language is really about analyzing the set of language and API features you need, and the knowledge your users have regarding other languages.

    Stelligent: As a final thought- what other projects do you find interesting?

    Guillaume: There are plenty of them!

    But since it's a Groovy related interview, let me mention some projects embedding or using Groovy that I'm quite a fan of:
    • Ludovic Dubost's XWiki project, a second generation wiki engine and collaborative application platform, embeds Groovy as a way to extend XWiki by writing templates or plug-ins, or to manipulate the domain classes and objects you define in your pages. That's a really powerful platform for writing custom applications on top of a wiki engine. I like the fact it's a wiki (with all the standard features you can expect from a wiki), but it is more advanced than say Confluence, in the way it allows you to write custom forms or logic on top of your documents. And Groovy is a key element for that innovative aspect of the project.
    • I'm expecting a lot from a newly born Groovy sub-project called Grails which is a promising webapp framework for CRUD oriented apps, following an MVC approach, with a transparent persistence mechanism, and which applies the coding by convention paradigm to lower or remove the need for long and boring XML configuration or mapping files and other boilerplate code. It's really just in its infancy (started in early July), but I think it has a very high potential to become a driver for the whole Groovy community and for providing an easy introduction to webapps development for new Java developers. Stay tuned!
    • There are other interesting projects using Groovy, such as Geert Bevin's RIFE framework which contains a CRUD-part which allows you to define your domain classes in Groovy, and ta-da, you've got a CRUD webapp deployed in no time. There's also the eXo Platform from Benjamin Mestrallet which uses Groovy in its core for various things.
    原文地址:http://www.stelligent.com/content/articles/article.php?topicId=81&pageName=Who+Is+Using+Groovy
    附:Groovy輕松入門——Grails實戰之GORM篇
    posted on 2007-04-16 20:23 山風小子 閱讀(1412) 評論(1)  編輯  收藏 所屬分類: Groovy & Grails
    主站蜘蛛池模板: 91成人免费观看网站| a级毛片视频免费观看| 成人免费激情视频| 7777久久亚洲中文字幕蜜桃| 中文字幕乱码系列免费| 亚洲午夜无码片在线观看影院猛| 亚洲日韩乱码中文无码蜜桃臀 | 999久久久免费精品播放| 亚洲Aⅴ无码一区二区二三区软件| 亚洲av无码电影网| 成人黄色免费网址| 亚洲三级在线观看| 亚洲A∨午夜成人片精品网站 | 色吊丝免费观看网站| 老司机永久免费网站在线观看| 亚洲成a人无码av波多野按摩| 国产亚洲成人在线播放va| 114一级毛片免费| 亚洲13又紧又嫩又水多| 毛片免费视频在线观看| 亚洲AV无码专区在线电影成人| 麻豆亚洲AV成人无码久久精品 | 免费国产真实迷j在线观看| 亚洲av中文无码字幕色不卡| 国产成人精品免费视频软件| av网站免费线看| 亚洲AV日韩AV永久无码下载 | 国产高清对白在线观看免费91| 99国产精品免费视频观看| 亚洲精品国产福利片| 久久久久久99av无码免费网站 | 日韩免费一级毛片| 日韩在线视频播放免费视频完整版| 最近中文字幕高清免费中文字幕mv| 免费爱爱的视频太爽了| 一级一级一片免费高清| 精品亚洲国产成AV人片传媒| 日韩电影免费在线观看视频| 一区在线免费观看| 亚洲成人免费电影| 亚洲精品97久久中文字幕无码|