View Single Post
xerox8521
Senior Member
Join Date: Sep 2011
Old 10-30-2016 , 06:35   Re: Code styles - prefered, readability & performance
Reply With Quote #18

Quote:
Originally Posted by redwerewolf View Post
I'm probably one of the only coders that uses lines for no reason while saving lines for no reason since I use brackets for every function, just looks cleaner to me.

Code:
public void somefunction()
{
    if (somecheck || someothercheck)
    {
        return value;
    }

    if (notsomecheck)
    {
        return value;
    }

    //do actual stuff
}
looks neat and clearly visible without having to guess where A starts and B Ends
xerox8521 is offline