John Lam 1997 — 2026

Build scripts and Ruby

I’ve been spending some time this week playing release engineer for our web applications. One thing that becomes more and more apparent as I automate more and more of our deployment process is how build scripts are really programs, and must be treated as such. XML-based tools like *Ant and MSBuild really don’t cut it because you wind up going through rather severe context switches between the declarative nature of the targets and items, and some of the programmatic tasks such as generating environment-specific web.config files.

I prefer to be able to package declarative stuff with imperative stuff in a single file, so that I can visualize my entire build process. Ruby lets me do this in ways that I never really quite expected.

If you’re itching to try a scripting language, consider using it to do things like build scripts or testing your “real” applications. You’ll find it harder and harder to switch back to coding in the language that you used to create your “real” apps :)