38
maqdude
7y

One time a former colleague reformatted all the code because he was very strict on code conventions.. so.

If (1==1)
{

Instead of

If (1==1) {

After some discussion on why he should never do this I denied him the rights to commit any longer..

Also..

One time a user requested a feature.. he wanted a drop down with some values without specifying where he wanted it. To our best knowledge we put it somewhere where we thought it would be usefull.. for instance when it is a car model drop down ypu expect it to be somewhere near a car screen right.. little did we know that he didnt have any rights to acces that screen at all hhahaha.. after that he came yelling in our room telling us to think for him.. in not so light words I told him that he should write his stories properly and that if he creates crappy stories he leaves me with a lot of freedom of interpretation of his stories so stop crying and get the fuck out of my room..

Its not that I get angry easily but I cant handle dumb people that do dumb stuff around me..

Comments
  • 2
    @illusion466 well to me it doesnt matter to be honoust. I just didnt like he used the intellij or eclipse formatter to format all the code..
  • 4
    Would give that guy a beer for formatting all the code tbh
  • 1
    @shdw yeah you think you would untill you need to review his code and find the actual changes 😂
  • 7
    Isn't it just that some languages tend to follow certain conventions and that's it?

    For example my c# is
    if (true)
    {

    But my JS, TS are
    if (true) {

    Don't see a problem ^^
  • 2
    I prefer the opening braces on the same line. gofmt does it by default too 🤔
  • 3
    If someone changed the second thing to the first thing in my code, I would probably have to hire an assassin.
  • 1
    Brakes isn't the problem...
    There is 1000s of ways to do the same thing...
    It's the atitude.
    People like that shouldn't be allowed to work in a team... Toilets also need cleaning you know...
  • 0
    The new guy on my team does it the first way..
  • 0
    I prefer having a constant style over the whole project, and I can understand him, but if he breaks something that's really annoying
  • 1
    Always use the first style, because in some languages (TCL, Go, ...) it has to be used.
  • 0
    actually i cant remember whether it was the first or second one that was used.. the fact that he reformatted all the code within the project was what annoyed me. Not thinking about what the consequences might be.
  • 0
    Use the convention of the language you are writing in.
  • 0
    @ac1235 (second style -- sadly I can no longer edit)
  • 0
    @illusion466 one is not inherently better than the other. But people often defend the style they happen to like. I learned about two years ago, that liking one style over the other is really just a preference that develops when using one style or the other. And that preference can change, just like that, by just using the other style more often.
Add Comment