John Lam 1997 — 2026

Pragmatic Project Automation

Yesterday I finally got a few hours to catch up on some reading. At the top of my list was Pragmatic Project Automation by Mike Clark. It’s the third installment in the Pragmatic Starter Kit series by the good folks at Pragmatic Programmer (Andy Hunt and Dave Thomas’s original book is one of my all-time favorite books).

I received a review copy to read because Ted Neward sat in on my talk on unit testing of ASP.NET applications at WinDev this year. At some point during the talk, I started ranting about the angle bracket tax that you have to pay when you write [N]Ant scripts. Ted came up to me after the talk and said that I just had to read Mike’s book because he said exactly the same thing. So Ted kindly brokered a review copy for me via Dave Thomas.

There’s lots to love about this book. It’s short - 150 pages, and I read it in a single sitting. On p.38, I read what I had initially came for - a guest discussion by James Duncan Davidson (the original creator of Ant) on his regrets for choosing XML as the input to Ant. Mike then goes on to talk about using Groovy, a dynamically typed Java-esque language for the JVM and how to use it to script Ant builds.

The syntax is much cleaner than the equivalent Ant script, but somewhat short of a domain-specific language. That said, the trade-off of less DSL is more than worth it since you have the entire power of the Java libraries at your disposal in your build scripts.

The rest of the book is excellent. Mike has a real knack for writing - the ideas are crisp, and there’s no superfluous words (trust me- there’s a LOT of good ideas in this 150 page book). There are some very good pieces of advice regarding how to:

  • cut releases from your source tree,
  • how to automate builds using CruiseControl.
  • how to generate distributions using NSIS and their “SuperPIMP” technology (one of my favorite tools and technology names),
  • how to automate software feedback (similar to Steve Loughran’s “happy” pages in his excellent Java Development with Ant book).
  • how to use Lava lamps to light up your dev team’s experience

This book is written for a Java audience. However, good ideas are universal and transcend the technologies used to implement them. Most, if not all of the tools mentioned in Mike’s book have equivalents in .NET.

I highly recommend this book for any dev team. By automating your build process, you can spend more of your time working on important stuff, like seeing your families :)