Everything’s Groovy

February 6, 2009 — Craig Jones

One of the major benefits of using Grails as a web platform is how almost everything can be written in a single language — Groovy.  No more switching gears between language constructs.  Everything’s Groovy.

Groovy is most definitely the star of the Grails show. Every decision that went into formulating Grails started with, “What’s the Groovy take on this? How can we best take advantage of the innate ability of Groovy to solve this?” This attitude makes for a framework that’s powerful, yet minimal and consistent.

This attitude also goes beyond the Web framework. Groovy can be used end-to-end from inside the web server pages to the outer build scripts and even your shell scripts. In the Java world, before Grails came along, one would have to work in seven different languages to build a web app. Grails potentially reduces that to three:

Aspect
 
Any other Java Web Framework (e.g. JSP/Struts) Grails Way
Business Logic Java Groovy
Web Pages An arbitrary expression language such as EL or OGNL Groovy
Data Access Hibernate HQL, SQL, or Java Groovy (GORM)
Client-Side Scripting JavaScript JavaScript
Style Sheets CSS CSS
Build Scripts XML (Ant) Groovy (GANT)
Shell Scripts Linux bash scripts or Windows batch files Groovy (shebang)

Tags: , ,

Leave a Reply

Twitter Updates

  • On a mac it's super easy to encrypt/decrypt a file using openssl 2009-12-02
  • If you don’t think carefully, you might think that programming is just typing statements in a programming language. — Ward Cunningham 2009-12-01
  • Thanks to everyone at my CodeCamp LA presentation, you had great questions and I hope the exercise gave you something to take to work Monday 2009-11-21
  • Turns out my CodeCamp LA presentation made it to the front page of SlideShare today. Must be a slow day. 2009-11-21
  • Scrum has two deliverables, A Product Deliverable and a Capability Deliverable we don't talk up the second enough as agilists 2009-11-21
  • More updates...


Bad Behavior has blocked 59 access attempts in the last 7 days.