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

> One of the things we learned very quickly was that having generated source code in the same repository as actual source code was not sustainable

My rule of the thumb is to have both in same repo, but treat generated code like binary data. This was informed by when I was burned by a tooling regression that broke the generated code and the investigation was complicated by having to correlate commits across different repositories






I love having generated code in the same repo as the generator because with every commit I can regenerate the code and compare it to make sure it stays in sync. Then it forms something similar to a golden tests where if something unexpected changes it gets noticed on review.



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

Search: