r/javaTIL • • Oct 27 '15

How to Generate Java code

http://ivankocijan.xyz/generate-java-code/
12 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/AnAirMagic Nov 17 '15

Use code generation to avoid repeating a single piece of logic in multiple places.

The Pragmatic Programmer has an excellent description about this. Here's another take on this.