4
mahaDev
7y

The project that I'm assigned to was developed in haste because of some competition with other vendors.

The Devs who worked on the original code didn't really follow each others spacing conventions. So now there are files which differ in spacing. A lot. And I'm used to the standard 8 spaces=1 tab convention.

Every frikkin time I have to even look at the code, I have to refactor it (but not save it) and then undo the refactoring because when I try to check in the refactored code, every line shows a conflict.

Every line.

So if I have to work with code which was written by more than one person, my life's a living hell.

Ctrl+Shift+F people! Use it or lose it!

Comments
  • 1
    @irene there's a lot of commented code and unused code as well. I forgot to mention that I have to delete that code as well. And then add it back >_< to be in sync with the repo *and* maintain changes before my code is reviewed for check in.
  • 1
    Errr, why would changing how many spaces are used cause a git conflict? Lol.
  • 2
    @neodite oh. Forgot to mention. It's not git. It's currently SVN. we're moving to git in a while though, so looking forward to that.
  • 1
    @irene it does. But what am I supposed to do when part of an if-block is commented and rewritten in parts? It's all so disjoint. 😭
  • 1
    Any tips/advice on how to reduce this headache?
  • 0
    Regexps, i guess? I used it for switching from dot-n-comma tables with floats values with decimal comma to regular csv tables with floats values with decimal dots.
    Easy, just like this.
Add Comment