Benefits Of Writing Clean Code

I have met many people from different domain in IT industry working together to solve a problem. I have seen product going into production with many bugs into it which is very obvious but there are times when we have to solve some critical bugs at a rapid pace. In such cases speed with which developer is going to solve a bug depends how other developer has written a piece of code.

There are developers who write more lines in order to make sure while reading the code another developer can understand easily and there are many developers who will write less line which no one can understand easily.

Reason behind writing this small article is to present some benefit of writing clean code and thought process requires to write

Benefits Of Writing Clean Code:

  • Readability: Code written in a clean way will result in faster understanding and onboarding new people into the project
  • Maintainability: Maintainability of code base and product quality is more costly than developing product from the scratch.
  • Testability: Code written in a clean way is more easy to test than the complex code
  • Bug Fix Time: Clean code will help developer to debug the issue more faster than the complex code.

Thought Process Requires:

Few thing one has to keep in mind while writing code:

  • Follow KISS principle (Keep It Simple And Stupid)
  • Follow DRY strictly (Don’t repeat yourself)
  • Follow SOLID principles if you are writing code in OOP(Object Oriented Programming)
  • Avoid being lazy while writing code


It’s not easy to start writing clean code in a day it requires days of practice and effort but the day you will learn, you will love it.




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium


The Purposeful Infinite and Vice Versa

Get the best out of Flutter flavors with flutter_flavorizr

mydash101 customer care number..8081067602 any problem call now 24 hours money refund..8081067602

How Expedia is getting rid of Java Bean Transformers

Resemble.AI now supports Unity with Open Source Plugin

How I passed the HashiCorp Terraform Certification

Improve the performance for IOS APPs

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Prashant Maurya

Prashant Maurya

More from Medium

The Document Object Model, Counting Function Calls, and HTML5/CSS3

DRY — Don’t repeat yourself

Applets and HTML

Object Oriented Programming in Java