"Any fool can write code that computers can understand. Good programmers write code that humans can understand." - Martin Fowler

What is clean coding

As our programs grow Larger, we have to break down our code into smaller chunks, these chunks are easier to read and understand, Also we can potentially reuse them in other programs.

Programs written this way are more maintainable and easier to extend.

Refactoring

Changing the structure of the code without changing its behavior.

Extracting Methods

Don’t write the logic code or code which does a certain work in the main. Extract these codes into a method so that we will have more clean code and we can reuse them again.

Keep our Methods Short.

Refactoring Repetitive patterns

"Refactor the repeated code into a dedicated method to enhance code reusability and improve overall code cleanliness. By encapsulating the common functionality within a separate method, we not only reduce code duplication but also promote a modular and maintainable code structure."