2 ms·
>We wrote our own scary Python code, tapping into various functions in the Moman package, to auto-generate unreadable Java code Hnggg If I wrote this code, I
by wyager 12y ago
>We wrote our own scary Python code, tapping into various functions in the Moman package, to auto-generate unreadable Java code
Hnggg
If I wrote this code, I don't think I could ever convince myself I did it correctly.
- mickeyp 12y agoCode generation does serve its purpose, but I would argue that it's only a bit more effort to make it readable and with code-generated comments as well. I once had to build an Oracle PL/SQL interface for a rather complicated integration project between two old systems and the business requirements for what had to go where changed daily. In the end I opted to code generate the PL/SQL interface and supporting code from a spreadsheet that the business always kept up-to-date with the latest changes to the requirements. Ultimately they could change things to their hearts' content and I would only have to press a button to re-generate it all.
- brimstedt 12y agoRemember a story like that on thedailywtf.. Was it yours?:)