Category Archives: Groovy

Junit Kungfu

A great presentation with audio that talks about Junit 4, test naming and other things.  I liked this presentation because it starts expression Behaviour Driven Development concepts without actually using a Behaviour Driven Development Framework.  Additionally its one of the … Continue reading

Posted in Groovy, Java, Testing | Tagged , , , , | Leave a comment

Seven Groovy usage patterns for Java developers

A colleague at my work recently added a Groovy console into one of our applications and it was this that reminded me of the ‘keyhole surgery’ pattern that I watched in a presentation last year by Groovy In Action author … Continue reading

Posted in Groovy | Leave a comment

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