Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Code generators can work if you .gitignore the target folders, so everything generated must be used as-is or augmented by a separate handwritten file like a subclass. And to integrate them tightly into your build process so the generator tool runs transparently.

But even then they're a nightmare because your errors don't match your source files.

"generate and edit" is suicide. "generate and treat the outputs as intermediate compilation objects" is merely an incredibly painful tool of last resort.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: