Skip to Content
Sign in
Code Smell

Code Smell

12 posts

Code Smell | Generic Exceptions

Code Smell | Generic Exceptions

Understanding why using generic exceptions is a code smell and how it can make error handling difficult.

Code Smell | Complex Conditions

Code Smell | Complex Conditions

Avoid complex if conditions by using variables or functions to improve readability and maintainability.

Code Smell | Chained Ternary Operators

Code Smell | Chained Ternary Operators

Avoid the code smell called "Chained Ternary Operators" by replacing them with switch statements and object maps for cleaner, more efficient code.

Code smell | Side Effects

Code smell | Side Effects

This code smell can be detected when a function modifies an external state beyond its own scope.

Code smell | Hardcoded fake data in tests

Code smell | Hardcoded fake data in tests

This code smell occurs when you see fake data that is needed for tests within the same test file.

Code Smell | Switch Statements

Code Smell | Switch Statements

This code smell is caused by the abusive use of the switch statements.

Code Smell | Too Many Imports

Code Smell | Too Many Imports

This code smell is caused by the abusive use of imports in components, classes or any other type of module of our project.

Code Smell | Magic Numbers

Code Smell | Magic Numbers

This code smell can be detect when we use a number that lacks the proper semantics.

Load More You've reached the end of the list