Tired of people breaking my code!

Discussion in 'PHP' started by topcoder, May 10, 2013.

  1. #1
    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 :)
     
    Last edited: May 10, 2013
    topcoder, May 10, 2013 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    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?
     
    EricBruggema, May 10, 2013 IP
  3. HuggyStudios

    HuggyStudios Well-Known Member

    Messages:
    724
    Likes Received:
    20
    Best Answers:
    26
    Trophy Points:
    165
    #3
    Do you use GIT or something similar? If you all have your own branches you won't get that problem!
     
    HuggyStudios, May 11, 2013 IP
  4. Airknight

    Airknight Active Member

    Messages:
    91
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    50
    #4
    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.
     
    Airknight, May 11, 2013 IP
  5. kuszeras

    kuszeras Active Member

    Messages:
    326
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #5
    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.
     
    kuszeras, May 11, 2013 IP
  6. Alexbizz

    Alexbizz Active Member

    Messages:
    194
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    60
    #6
    30 developers and they don't use VCS.
     
    Alexbizz, May 11, 2013 IP