Hi y'all
Today I was asking myself an interesting question. So please everyone who read this please give comments!!!!
Me as a developer, I do not like rules for Source Control.
But as soon as your local machine crashes or you get a solution out of TFS which does not compile or you become a Project Manager or …. You really feel like making a change to my own habits. Pain is sometimes the best motivator.
But what are the best rules for TFS (or SourceControl in general) without going overboard?
Here are some basic rules I came up with:
- Check in/ Shelfing every night is required. Every morning at around 4 am run a script to see what was not checked in and send an "informal" email of all "offenders" to the DEV Team.
- Every check in starts a continuous integration process and checks if the solution still builds. If not: Notification Email
- NO LOCAL CODE on any machine which is not checked in (even little helper tools for troubleshooting) . This is a tough one to enforce but worth making a value out of it. Maybe have independent project where everyone can have their own snippets or little test tools.
- Minimize Branching. But if you need it USE IT! Use Labeling as an alternative
Am I missing something? But I think this would solve most of the Source Control problems IT-Shops are facing
What are your thoughts?
Tom