Hacker News new | past | comments | ask | show | jobs | submit login

Normally you shouldn't be checking generated code into version control. This only measures GitHub users who did that anyway.



Normally, yes, but...

If you don't check in the generated code, that means that you have to run the generator every time you build (or at least every time you get a clean copy of the tree and build). For code that changes very rarely, that may not be a net win.

Also, if you don't check in the generated code, and then you upgrade to the latest version of the generator, surprising things can happen (or even if different people have different versions of the generator installed).

So there can be cases where checking in generated code can be at least a reasonable thing to do.


I wish I had checked in the generated code for some of my very old CS assignments as I no longer have the tools necessary to generate the code. :(




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

Search: