<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
    主站蜘蛛池模板: 亚洲天然素人无码专区| 人禽伦免费交视频播放| 免费又黄又爽的视频| 国产一二三四区乱码免费| 亚洲最新在线视频| 亚洲国产综合精品一区在线播放| 久久99精品免费视频| 亚洲AV无码成人精品区日韩 | 男女污污污超污视频免费在线看| 中文字幕在亚洲第一在线| 国产精品免费网站| 精精国产www视频在线观看免费| 亚洲第一网站免费视频| 一本色道久久88综合亚洲精品高清 | 日韩亚洲国产高清免费视频| 亚洲中文字幕日产乱码高清app| 97在线线免费观看视频在线观看| 国产久爱免费精品视频| 亚洲色图激情文学| 久久亚洲国产精品| 免费在线观看视频a| 国产在线观看免费观看不卡| 国产在线精品一区免费香蕉| 国产亚洲sss在线播放| 亚洲人成色77777| 国产精品免费看久久久无码| 精品一区二区三区无码免费视频 | 中文字幕在线日亚洲9| 亚洲成A∨人片在线观看不卡| 国产国产人免费视频成69大陆| 最近中文字幕大全中文字幕免费 | 最近高清中文字幕免费| 久久一区二区免费播放| 在线观看免费亚洲| 亚洲一区中文字幕在线观看| 午夜亚洲AV日韩AV无码大全| 亚洲热妇无码AV在线播放| 四虎影院永久免费观看| 在线看免费观看AV深夜影院| 亚洲欧洲免费视频| 国产精品免费看久久久|