How to tell if a code is bad? 8 Common things that show a smelling code…

What you need to keep in mind to avoid smelling code

FAM
Geek Culture

--

By @the_frontend_world

“In computer programming, code smell is any characteristic in the source code of a program that possibly indicates a deeper problem”.

💩 Mysterious name

One of the common things about a smelling code is the naming strategy. If your team doesn’t have project naming conventions or principles, then you should propose that. As the app grows, having a naming principle is crucial.

Maybe you’re already a lead developer or a senior, and you have your own ways of naming variables. Still, a team has beginner developers, some senior developers, architects if the project is significant, and a project manager.

At some point, your team needs to speak the same language. That means to have naming principles, and docs for the architecture every developer needs to respect.

Here are some naming principles you can propose to your team in need:

  • Make sure to reveal the intent of your variable.
  • Avoid misunderstanding whenever you can.

--

--

FAM
Geek Culture

A passionate software engineer and Angular GDE. I love to learn, help & share ❤. Find more about me here: 🔗 www.fatimaamzil.com.