Should you learn to write clean code?

If you write code, you should write clean code

Seeing the difficulty scientists and engineers have in writing clean code and their resistance in learning it, I used to think that maybe clean code is the domain of computer professionals. But getting a computer professional understand the scientific part of the software can be prohibitively expensive.

Therefore I’m changing my mind. I think that the best solution is that if you write code, you should learn to write clean code. If you code a model now, you are likely to be improving it for your lifetime, and writing clean code is a skill you will need.

So how do you learn to write clean code? You could start from my overview and the posts that follow it, and then read Robert C. Martin’s “Clean Code”.