3 ms·
I find the first version easy to read, and the second confusing and hard to read. I believe this is a matter of what a person is more accustomed to, and I learn
by epistasis 14y ago
I find the first version easy to read, and the second confusing and hard to read. I believe this is a matter of what a person is more accustomed to, and I learned on the first form and lately have been using the first form more. For me the extra brace below the keywords makes it hard to find the phrase of interest, and the expanded vertical space also makes it more difficult to line up indentation levels. But these visual cues are flexible, and I could learn similar scanning tricks for the second form.
I have worked with people that were dogmatic that one form was objectively better than another form, rather than it being a matter of local optimization in the brain; I have difficult working with these people because they tend to show similar rigidity and confusion of the subjective with the objective in other areas, and such small mindedness limits what type of engineering solutions one is able to come up with.
- nightski 14y agoAgreed. If I was forced to pick it would probably be the first one, but other than that I just don't care.
- robomartin 14y agoDid either of you pick-up the fact that the first version is missing a curly brace? :) Hard to see. That's my point. And that's why I tend to favor the second style. I'll use any convention if required, but if given a choice I go for styles that protect me from my own dumb mistakes as much as possible.