|
tabs for indent, spaces to seperate variables from operators ( it's not like we have to squeeze our code into sms messages is it ), always put the braces on a new line ( even for single line if's ) & always put brackets instead of relying on operator precedence.
I find these really help code readability. Trying to cover as much of the white editor window as possible doesn't make readable code.
Oh and never, ever, ever use trinary operators as they are pure evil and offer zero advantages ( so much so that I don't even remember the syntax and I've been coding in C for over a decade ).
smf
|