4 ms·
Rule #6 increases readability. eg: int foo; // a page of code foo = bar + 5; // more code vs // a page of code int foo = bar + 5;
by proverbialbunny 7y ago
Rule #6 increases readability. eg:
int foo;
// a page of code
foo = bar + 5;
// more code
vs
// a page of code
int foo = bar + 5;
// more code
This keeps everything in one place. It's more readable and easy to follow.
I feel like the topic of inlined code is similar but is not quite the same.