7 ms·
Only if you write shitty code it's 10 times easier to write it than to read. When I write my code I use much, much more effort to try to express clearly my inte
by tigershark 9y ago
Only if you write shitty code it's 10 times easier to write it than to read.
When I write my code I use much, much more effort to try to express clearly my intent and what it is doing, and in that case it's much easier to read it than to write.
I think that we can easily say that good code is very difficult to write and very easy to read, bad code is very easy to write and very difficult to read.
The code is written once and read n times by m different people, so there is a huge gain in spending more time in making it simpler to understand rather than spending the minimum time in writing code and leave all the effort to the readers.
Readers that, very often, after they become too frustrated, want to rewrite it (and for very good reasons I'd say).
- gregjor 9y agoWe all think that we write our code so other programmers can read it, and we believe that because while we have the code in our heads we don't have any problem reading it. I don't question your intentions or abilities, but the fact remains that a whole lot of programmers find almost every piece of code they didn't write hard to read. Or they say that -- I think they mean they just don't like the look of it, or they can imagine writing it differently.