Write code that is easy to read – Clean Code Post 4

Writing code is relatively easy, but reading it can be hard if care has not been taken by the Author of the code. Taking the time to write clean code pays off as you are not just making your live easier, if you have to revisit code, but you are also making future readers of your code lives easier too.

Writing sloppy code injects technical debt into your code base and as you may know technical debt is depressing. Technical debt de-motivates people and will potentially drive people away from your organisation.

Being sloppy slows you down in the long run as your code is likely to have bugs and need tidying up in the future.

One thing you can do to improve the quality of you code you are writing is to follow the TED rule:

Terse
Your code should not be excessively wordy

Expressive:
It is clear what your code is trying to do

Do one thing
Your code should have a clear responsibility. It should do that one thing well