Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
kamen69958yThere should be a code convention if multiple devs are working on the same code. If you've inherited code from another guy, you can just set the code style like you want it and format all the code at once.
-
Hultan704668yIn visual studio you can just press ctrl + k ctrl + d to automatically format the current document...i believe it formats according to what you have set in the settings.
-
willol13898yRather than formatting everything you should learn to accept that :/ else, the next dev will reformat, then the next, then the next... That's how you have inconsistent coding style, which is far worse than a consistent coding style that you don't like!
-
psudo3408y@T-Hammer What? I can't think of any language that a line break would make runtime slower.
-
Eariel19088y@catchiecop, there is an option for code formatting in every IDE I know. Usually in a big project the lead or the whole team decide on a set of rules and then add to version control the code style preferences file, so everyone just uses the same.
-
Different coding styles makes it easier to recognize who wrote a certain function, thus whom to blame ;)
-
psudo3408y@T-Hammer That's parsing. Most languages do that up front, so at runtime you don't need to. That said I would recommend writing it so a human can actually read it and then let a minifier or something similar loose on it before pushing it to production.
-
It would be so annoying, and funny, if your IDE was configured to use the same company convention as your colleague. ,😅😆😆😅😅😆😆😅😅
-
mell02018yMy computer science teacher forces us to write code the latter way and I want to kill him
Related Rants
I write blocks of code like this:
If(condition){
code
}
I'm trying to fix a bug and the previous dev is doing it like this:
If(condition)
{
code
}
Does anyone know any good nerve calming pill ? 😜
undefined
ocd
rant