23 January 2008

VCS plus code generation

Many projects I worked on had code generators. Like all generated files, that code should not be put under version control. Like all generated files, those files should be deleted when the project is cleaned (for example, by the command make clean). Here's another good habit: If you have generated code then replace the sequence "update, commit" with "clean, update, commit". Otherwise, if the location of the generated files changes, then you are likely to run into trouble.

No comments:

Post a Comment

Note: (1) You need to have third-party cookies enabled in order to comment on Blogger. (2) Better to copy your comment before hitting publish/preview. Blogger sometimes eats comments on the first try, but the second works. Crazy Blogger.