DEV Community

When does understanding other programmers' code become easier?

edA‑qa mort‑ora‑y on November 26, 2017

I could simplify and say, “with experience”, but that’s not the whole story. Understanding code requires understanding the language, the paradigm,...
Collapse
 
craser profile image
Chris Raser • Edited

I'm reminded of Brian Kernighan's note about code cleverness:

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.

I think the same concept applies to reading code. Don't just make it possible to read, make it easy to read. Your colleagues and your future self will thank you.

Collapse
 
speedstream profile image
Aaron Santos

Some time ago I read this quote:
"When I was coding, only God and me knew what I was creating. Now, only God knows..." So, how do you expect to someone will understand somebody's code?
In fact, you'll need experience to make code easy to read. The same applies for life: The easier you say something, the easier will be to understand.

Collapse
 
nateruze profile image
Nashia Fairuz

Brief and informative 🙏 answers the question I’ve been thinking about lately