(no title)
mkmcdonald | 13 years ago
I don't. I use descriptive names for functions and short, concise words for variables (sometimes clear abbreviations).
> Another nit, Google Style guides disallow formatting for readability except for comments?!?!
> Allowed
> [regularly formatted variable declarations]
> Not allowed
> ["pretty" formatted variable declarations with indentation]
Code Complete 2 explicitly discourages the latter style, and I tend to agree. It's too difficult to maintain.
greggman|13 years ago
That might work. Unfortunately abbreviations are forbidden by the Google Style Guide.
> As for lining up
my point still holds. Either lining up helps or it doesn't. If it doesn't help then lining up comments should not be allowed. If it does help, then it helps every where.
Is vastly easier to read and find errors in IMO than this The first is not allowed by the Google Style guide. It requires the 2nd.mundizzle|13 years ago
instead i do something like this. (incorrect trailing commas removed from the previous example)
mhansen|13 years ago
binarysoul|13 years ago