I work with a team of about 30 developers and almost every day someone is going in and changing my code and breaking stuff. So, I decided to add the following comment about a week ago and to my surprise it's actually worked. I cannot take credit for the idea. I saw it on stack overflow but it's genius imo. // Autogenerated, do not edit. All changes will be undone. Thought some of you guys working on bigger projects might appreciate this
Why? if you work with a group of developers i think they only can make things better? and breaking your code? if that's true, then the developer who changed a bit of code would see alot of errors doens't he? Don't see your point in this?
A team composed of 30 developers and you don't even use a revision control system ? How are you working guys ? Pretty scary... Use GIT or SVN or Mercurial. Do Unit Tests, nothing will break your code.
Introduce automated system of tests before check-in. If someone beaks the code, tests can catch that and he is not allowed to submit. That is the most scalable way although costly as you need to write those tests and pipeline.