Skip to main content

One post tagged with "clean-code"

View all tags

Clean Code JavaScript

· 10 min read
Bruno Carneiro
Fundador da @TautornTech

In this article, I will present some good programming practices in JavaScript. However, these practices can be applied to any programming language, as they represent a set of recommended guidelines.

The central concept addressed here is "Clean Code," which refers to code that is easy to read and understand, as well as easy to maintain. The goal is to create clear and concise code.

Before proceeding, I would like to start with a quote from Bjarne Stroustrup, the creator of the C++ language:

"I like my code to be elegant and efficient. The logic should be straightforward to make it hard for bugs to hide, the dependencies minimal to ease maintenance, error handling complete according to an articulated strategy, and performance close to optimal so as not to tempt people to make the code messy with unprincipled optimizations. Clean code does one thing well."