Category Archives: Groovy

CamelCaseString to Space Separated String

groovy> print ‘CamelCaseString’.replaceAll(/([A-Z][a-z]*)/, ‘$1 ‘).trim()Camel Case String There is probably a better regex approach that does not a space to the final word, and thus remove the need for a trim, but this is quick and easily embeddable anywhere, for … Continue reading

Posted in Code Snippets, Groovy | Tagged , , , | Leave a comment

Groovy for Java Devs

http://live.eclipse.org/node/888 This presentation talks about Groovy in general and goes thru the general Groovy constructs.  It also talks about the Groovy plugin for STS / Eclipse (though I’ll keep my IntelliJ thanks).  But its a great intro for anyone who … Continue reading

Posted in Eclipse, Groovy | Leave a comment

Hyperic HQU Monitoring

As a software dev who worked with an ISP, I learnt monitoring is a big thing.  Customers have availability metrics we need to meet, and more importantly customers are paying for a service.  When it goes down, they shouldnt have … Continue reading

Posted in Groovy, Java, Monitoring | Leave a comment

Graph Databases

A great article on the NoSQL movement, focusing on Graph Databases and the Neo4J implementation appeared on InfoQ. Graph databases store a Node (aka vertex), that has properties (aka attributes), that is then linked to another node.  The relationship (aka … Continue reading

Posted in Database, Groovy, Java | Leave a comment

Design your own DSL with Groovy

http://www.infoq.com/presentations/Design-Your-Own-DSL-with-Groovy This presentation is by Guillaume Laforge, one of the Groovy founders, who does quite an interesting presentation about how Groovy supports Domain Specific Languages. In short he starts with a simple example of how the Groovyisms in the language … Continue reading

Posted in Groovy | Leave a comment

So you like Graphs, Groovy and Monitoring

Here is a Groovy DSL for JMX Monitoring that integrates JFreeChart and uses the Groovy SwingBuilder to produce some home grown funky graphs with not very much code at all. http://blog.kartikshah.info/2010/02/groovy-dsl-jmx-reporting.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+kartikshah+%28Kartik+Shah%29

Posted in Groovy | Leave a comment

Junit’s Theory’s as interprested by Schauderhaft and Groovy

JUnit theories sound promising.  Many a time a developer writes a whole lot of @Tests along the lines of testParameterXzero(), testParameterXone(), testParameterXmaxInt(). The test code may be almost identical apart from the parameters being used in the class/method under test … Continue reading

Posted in Groovy, Java, Testing | Leave a comment

Some Groovy Little Tips

My favourite Groovy/Java/IntelliJ web presenter, Vaclav Pech, has a short 20min Parleys talk on using Groovy with IntelliJ. What I found neat was IntelliJ’s ability to take a Java class, rename it as a Groovy one, then refactor all the … Continue reading

Posted in Groovy, Java, Scala, Software Development | Leave a comment

Scratch your Groovy itch on the web

Here is a web based Groovy console, so the next time you are say on the train and want to write some Groovy using your iPhone* or at some PC with a locked down environment, you can! http://groovyconsole.appspot.com/ Hours of … Continue reading

Posted in Groovy, Software Development | Leave a comment

Groovy 1.6

You could read thru the Jira release notes for 1.6 and 1.6rc1-3 or you could just read this infoq article which provides a summary of all the good stuff in the new Groovy release. I dont think the Groovy home … Continue reading

Posted in Groovy | Leave a comment