7 Clean Code Practices Every Developer Should Include in their Day-to-Day Work

Carolina Ramirez
Geek Culture
Published in
5 min readJul 2, 2021

--

Coding is one thing, good coding is another story. This article will guide you through some practices that can be easily included in your routine to make your code better.

What is Clean Code?

The concept of clean code can be tracked to Robert C. Martin and his book “Clean Code: A Handbook of Agile Software Craftsmanship”, however, the principles are much older. The idea behind this concept is to write understandable code so it becomes easier to maintain.

The specific principles are a highly debated topic among the developer community, some people may or may not agree with some of them, but I can say that the ones I’ll be covering next are highly accepted, and in my personal experience, are really important to improve the quality of your code.

Before we get into it, I must say that these principles are language-agnostic, so they can be implemented in your code no matter if you work with Python, Java, JavaScript or whatever.

1. Keep Functions Short

According to Clean Code practices, the functions should do one thing only. A good exercise when programming is, after creating a function, evaluate if it’s possible to extract another function from the body of the…

--

--

Carolina Ramirez
Geek Culture

Frontend Developer | Tech writer and enthusiast | Always learning, always improving