The Curious Dev

Various programming sidetracks, devops detours and other shiny objects

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.

Jun 16, 2012 - 1 minute read - Groovy

Upcoming goodness with Groovy 2.0

Guillaume Laforge has provided a recent update to what we can expect to see in the upcoming Groovy 2.0 release. I’m sure it’d be more enjoyable live at GR8Conf, but a great read all the same. Some things I’m interested in: Memoization - could have some interesting uses JSON - have used Jackson previously, but built-in is great! New AST Transformatons (@ToString, @TupleConstructor, @ThreadInterrupt) - even more syntactic sugar Multicatch - cuts out even more verbosity InvokeDynamic performance improvements Groovy 1.