4 ms·
i don't think style-enforcers are 'confused' and unable to read code, it's that consistent style makes reading code a LOT easier. if the same thing is being do
by parpfish 3y ago
i don't think style-enforcers are 'confused' and unable to read code, it's that consistent style makes reading code a LOT easier.
if the same thing is being done in two different ways, you have to actually read and think about the both chunks of code to see that they're the same.
with consistent style you can essentially speed-read a codebase because things are predictable.
with inconsistent style, you're constantly reading slightly-different pieces of code and figuring out "is this different purely for style reasons, or was there a reason that one section if different?"
- jiggawatts 3y agoYou speak of using a consistent, established pattern to improve comprehension, but you eschew the use of capital letters when writing English. Interesting.
- parpfish 3y agoI also make sure to include typos. Just to be consistent with the rest of the internet.