Codegen vs. Reflection!
Laurence Gonsalves prefers compile-time code generation over runtime reflection. He writes, I think all-in-one toolchains (eg: IDEs) are actually part of the reason Java has both not enough magic (like Rob says) and also the wrong kind of magic (runtime reflection). If there was a standard way to plug code…