InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Groovy as a business user language?

Posted by Mark Figley on Jul 31, 2007

Sections
Architecture & Design,
Development,
Enterprise Architecture
Topics
Business ,
Java ,
Dynamic Languages ,
Architecture ,
Scripting
Tags
Groovy
Lifehacker, a popular personal productivity blog site, recently announced that OpenOffice would be using Groovy for their user facing macro/scripting language, the equivalent of VB/VBA in MS Office:
Free OpenOffice extension Groovy makes it possible to record and run Macros in OpenOffice. Don't confuse Groovy for a cheap Visual Basic knockoff. Groovy has its own syntax similar to bash mixed with Java. If you were sticking to Microsoft Office solely for its macro capabilities, you may be able to break away with Groovy. Unfortunately, Groovy is not nearly as beginner friendly as VB/VBA. However, beginners will have no problem getting started with simple macros. Groovy is a free extension for all platforms with OpenOffice.
For Architects there are a couple of things that are really interesting about this post:
  • The source of this post. Lifehacker is a personal productivity news site, not a java developer oriented news site. It’s a geek friendly productivity site to be sure, but the readers of this site are likely to be the power users in the business units of your organization, not just the developers in your IT shop.
  • There is no mention of Groovy as a broadly applied, general purpose programming language. No mention of Grails or Groovy’s use in a Java application infrastructure. In fact, after reading the post there is no reason to believe that Groovy is anything more than a scripting language extension created for OpenOffice. By neglecting to introduce Groovy in a broader context the author of the post might just be trying to keep things simple for the reader, but regardless we are seeing Groovy extending its relavence here. To this audience, Groovy is not a dynamic language for Java developers - it is a scripting tool for power users.
If nothing else, it is interesting to note that because of the OpenOffice integration Groovy my gain a whole new class of users that understand Groovy from a completely different perspective than your typical Java developer would. But from an Enterprise Architecture perspective, the application platform implications are more significant. For a long time Microsoft has been positioning it’s office suite as a rich client platform upon which power users can develop workgroup support applications that can integrate with backend applications, business services and databases. For Java shops there have always been issues with embracing that strategy because many Java shops aren’t fluent with the Microsoft stack. Now Groovy is giving OpenOffice the ability to compete with Microsoft in this space, and because of Groovy’s native integration with Java, OpenOffice/Groovy may now become even better positioned than MS Office as a rich client stack for Java shops.
Interesting... by Kit Davies Posted
Re: Interesting... by Thom Nichols Posted
Why not JavaScript? by Thamaraiselvan Poomalai Posted
Re: Why not JavaScript? by Vadim Voituk Posted
Re: Why not JavaScript? by Stefan Tilkov Posted
Re: Why not JavaScript? by Vadim Voituk Posted
  1. Back to top

    Interesting...

    by Kit Davies

    Mmm. Functionally, it sounds great. But I can imagine the memory usage and performance being "less than spectacular", which might just annoy all those influential power business users, undoing all the good work in a stroke unfortunately.

  2. Back to top

    Re: Interesting...

    by Thom Nichols

    Not that I have tried this in OpenOffice, but in general...

    Groovy's performance is more than adequate for scripting applications, and I imagine memory would be a non-issue for anyone with more than 512MB of RAM.

    I'd be interested to hear first impressions of anyone who's actually tried it.

  3. Back to top

    Why not JavaScript?

    by Thamaraiselvan Poomalai

    Why can't we use JavaScript? If we use Rhino based JavaScript engine, we have all power of Java with easy usability of javascript. Any one out there to listen?

  4. Back to top

    Re: Why not JavaScript?

    by Vadim Voituk

    JavaScript has no such powerfull language capabilities like Groovy has.
    Also Groovy uses power of JVM HotSpot throught compilation to bytecode.

  5. Back to top

    Re: Why not JavaScript?

    by Stefan Tilkov

    Vadim, could you elaborate? What features are missing?

  6. Back to top

    Re: Why not JavaScript?

    by Vadim Voituk

    Groovy`s superiority - the JVM backend (HotSpot compilation and powerfull JDK) + much of language features (OOP, Clousers, native collections support, etc), that makes your code more readable, clear and easy to support.

Educational Content

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.