4 ms·
Gee has excellent points. I think that in order to get good at writing readable code, you need to spend a lot of time both reading code and watching other peop
by kragen 5y ago
Gee has excellent points.
I think that in order to get good at writing readable code, you need to spend a lot of time both reading code and watching other people read code you wrote. That's the way you learn which things make code hard to read or easy to read.
In fact, I'd go further and say you need to watch people in your target audience read code you wrote. Different subcultures find different styles easier or harder to read. When you're writing prose, you always have a target audience, and readability is relative to that audience. The same is true of code.