June 2007

Code Generation – John McDonald

Why write code if you can get your computer to do it for you?

John gave us a look at a Delphi program that can generate source code for DUnit tests and discussed advantages and disadvantages of this technique. We also looked at a couple of tools that can be used for code generation and discuss other areas where code generation might be useful.

Code Generation won’t write all of your programs, but it can help write some bits of repetitive code and it can do it more consistently and reliably than coding by hand.