The Curious Dev

Various programming sidetracks, devops detours and other shiny objects

Jul 22, 2012 - 4 minute read - General Groovy Web

Words From Numbers

Recently I discovered a local site, westernrails.com, provides a weekly update on some train movements in the Perth / WA area, in the form of an e-mag / PDF. (I’m a bit of a train geek, but that’s a different post). Unfortunately the site doesn’t offer a feed so as a bit of an exercise I decided to write a little downloader script that would grab the whole list of back-issues.

Jul 9, 2012 - 8 minute read - Web Performance

Easy Wins For Website Performance Tuning

I recently embarked on a little journey to investigate various methods to improve the performance of a website, in this case a small static placeholder site of mine (might as well put something there) dand.ws. It’s hosted on shared hosting at Dreamhost, on Apache. Why Does Performance Matter? Website performance is known to be one (of many) indicator that Google use to rank sites. This means that if you’re trying to run a business, poor performance is probably costing your money.

Jun 28, 2012 - 1 minute read - Groovy

Groovy 2.0 Is Here

Groovy 2.0 has officially been released by Guillaume LaForge today, go get it Guillaume has also written a great intro to the new features over at Infoq here

Jun 23, 2012 - 2 minute read - Groovy

Groovy Closures

One of my favourite parts of Groovy is the functionality that Closures provide. Basic Usage A Closure is kind of like an anonymous method in Java, or a little like a function in JavaScript, except with a lot more functionality in a very simple and clean syntax. def hello = { println 'Hello, World!' } hello() //prints "Hello, World!" The above isn’t very useful on its own, but it is this structure that can be applied to other problems.