|
|
|
|
|
by edent
4219 days ago
|
|
Because I find it really handy to quickly, and visually, check the sanity / logic of something. In your example, it's really easy to run your eyes down a column and see that one of those values is radically different from the others. As a trivial example: int robert_age = 32;
int annalouise_age = 25;
int bob_age = 250;
int dorothy_age = 56;
I find easier to read as: int robert_age = 32;
int annalouise_age = 25;
int bob_age = 250;
int dorothy_age = 56;
Coding styles are about readability and usability. The columns metaphor works well for some categories of data - that's why spreadsheets are so popular. |
|