News for hackers. Stuff that matters.
Re:Clear is better than clever [pdf] by markrages on Monday May 06, 2019 @01:02PM (#19841370)
Programmers have to learn to read different styles, to read code from other projects. So use the construction that is clearest in its local context.

Style is a matter of taste, just like writing English: there are synonyms and idioms for every idea that you want to express, so use that freedom to choose the clearest communication. Like English, programming code is meant to communicate to other humans, so don't artificially limit your vocabulary in the name of consistency.

Consistency is a hobgoblin.

Re:Clear is better than clever [pdf] by oblio on Tuesday May 07, 2019 @04:34AM (#19847540)
> Consistency is a hobgoblin.

A foolish consistency is the hobgoblin of little minds.

The whole quote is important. Cutting parts out changes the meaning of the whole thing.

Re:Clear is better than clever [pdf] by maxxxxx on Monday May 06, 2019 @01:10PM (#19841478)
I don’t think consistency is a hobgoblin (I hope I understand the meaning correctly). When you are new to a project you should follow the style of what’s already there and not do something completely different. Obviously there may be good reason but that should be discussed and you also should ask yourself if you are just not willing to adapt or if you are actually making things better.