back

by dcminter·17y ago·view on hn ↗
This is one programmer's opinions dressed up as a definitive list. We might as well be discussing bracing preferences - always futile without evidence.

For what little it's worth:

1. Minor benefit as noted. Most devs don't do this. Note that in point 3 his sample loop doesn't declare the loop item final so I doubt he does it all that often either.

2. Ok so far as it goes.

3. What objective benefit am I supposed to get here? If we're pulling preferences out of our bums, I'll go for meaningful names in loop variables thanks.

4. Says who? AT&T braces for the win!

5. Not my preference. Fails the YAGNI principle certainly (which he's apparently in favour of in point 2).

6. Who says it's too hard to use? For simple threading problems the existing tools are more than adequate.

7. Again, what benefit does this convey? It's used in a few places in Java (StringBuffer/Builder) but hasn't proven popular more generally. I suspect there are good reasons for that.

8. Not wildly unreasonable, but Getter/Setter pairs often turn out to be necessary in fairly short order.