Original Post
95% of the code I see has code that looks like this: When learning to code I learned to do it like this: The way I learned seems much more readable to me with the brackets lining up. It also makes it easy to debug when your missing a curly brace. The problem is that when looking at the first example it takes me longer to understand and grasp it then the second because I am less familiar with it. I am wondering should I switch now to the first example because almost everybody else uses it and I will waste a lot of time trying to understand things simply because of my different format? Also I know jobs have certain requirements for the way things should be coded. Would something like this part of those requirements?
public void doesSomething(int x){
if (x == 0){
// stuff
}
else{
//other stuff
}
}
public void doesSomething(int x)
{
if (x == 0)
{
// stuff
}
else
{
//other stuff
}
}