DEV Community

Discussion on: Which principles would your Hippocratic Oath for programming contain?

Collapse
 
metruzanca profile image
Samuele Zanca

How about these 2:

Document your code, if not for others but for your future self.

I especially like the last part, it sounds like something that would be in an oath.

Prefer self documenting code to actually documenting your code inside your source

Collapse
 
jmfayard profile image
Jean-Michel 🕵🏻‍♂️ Fayard • Edited

You remind me of Martin Fawler saying

“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.”

That sounds like a nice principle:

Write code that humans can understand

Collapse
 
metruzanca profile image
Samuele Zanca

Yeah, I like that first one aswell!