Will Hartung wrote:

Finally, I'd look at creating a simple script is any convenient language
that simply converts an HTML file into "java", and then cut-n-paste in into
your code.

Now, I find cut-n-paste to be one of the great evils of the development
communiity, but sometimes it is appropriate for one-off "code generation"
tasks.

I have written a similar script in Python to generate accessor and mutator methods for beans. It comes in handy for laying down dozens of lines of getters and setters. Cut and paste from other Java code might be a mistake (not as bad as cut and paste in other languages), but code generation is code generation.




Erik


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to