Member-only story

How to Keep Your Code Clean and Easy to Understand

Nayeem Reza
codeburst
Published in
9 min readAug 25, 2020

Being able to write clean code is crucial to becoming a better software developer. Not only will this practice make your life easier, but it will help others who are accessing your code and work to grow your reputation as a developer who is known for being thorough. This article is a high-level run-through of different tips and techniques that you can use to write clean and understandable code in a project; helping you to maintain code for a longer period of time without any hassle.

What is clean code?

To understand clean code we first need to have an idea of what bad code is — then we can identify problems and solutions to achieve clean code from there.

There is a famous analogy about defining bad code that is first narrated by Thomas Holwerda, later in Robert C Martin’s book, in which the measurement of code quality in WTFs/minute!

The original image can be found here.

Suppose we wrote a piece of code and some other teammates are reading or reviewing the code. If they immediately understand what the code is meant to do, that’s good code. But sometimes we ourselves can’t even understand something that we wrote a few months ago because we…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Written by Nayeem Reza

Fullstack Developer at EMBL ▪ Love 🚴 🏔 👨‍🍳 🍻 🎧

Responses (1)

What are your thoughts?