Blog

Code Smell | Generic ExceptionsCode Smell | Generic Exceptions

Code Smell | Generic Exceptions

August 16, 2024
Understanding why using generic exceptions is a code smell and how it can make error handling difficult.
codequality
refactorit
code-smell
generic-exceptions
Code Smell | Complex ConditionsCode Smell | Complex Conditions

Code Smell | Complex Conditions

July 13, 2024
Avoid complex if conditions by using variables or functions to improve readability and maintainability.
codequality
refactorit
code-smell
complex-conditions
Code Smell | Chained Ternary OperatorsCode Smell | Chained Ternary Operators

Code Smell | Chained Ternary Operators

February 4, 2024
Avoid the code smell called "Chained Ternary Operators" by replacing them with switch statements and object maps for cleaner, more efficient code.
codequality
refactorit
code-smell
Code smell | Side EffectsCode smell | Side Effects

Code smell | Side Effects

November 26, 2023
This code smell can be detected when a function modifies an external state beyond its own scope.
codequality
refactorit
code-smell
Code smell | Hardcoded fake data in testsCode smell | Hardcoded fake data in tests

Code smell | Hardcoded fake data in tests

May 21, 2023
this code smell occurs when you see fake data that is needed for tests within the same test file.
codequality
refactorit
code-smell
testing
Code Smell | Switch StatementsCode Smell | Switch Statements

Code Smell | Switch Statements

January 11, 2023
This code smell is caused by the abusive use of the switch statements.
codequality
refactorit
code-smell
Code Smell | Too Many ImportsCode Smell | Too Many Imports

Code Smell | Too Many Imports

October 20, 2022
This code smell is caused by the abusive use of imports in components, classes or any other type of module of our project.
codequality
refactorit
code-smell
Code Smell | Magic NumbersCode Smell | Magic Numbers

Code Smell | Magic Numbers

August 16, 2022
This code smell can be detect when we use a number that lacks the proper semantics.
codequality
refactorit
code-smell
Code Smell | Data ClumpsCode Smell | Data Clumps

Code Smell | Data Clumps

May 24, 2022
This code smell can be detected when we observe that certain groups of data are being used in different parts of our code.
codequality
refactorit
code-smell
Code Smell | Shotgun SurgeryCode Smell | Shotgun Surgery

Code Smell | Shotgun Surgery

March 16, 2022
This code smell can be detected if making a change have to replicate this change in different parts of our code.
codequality
refactorit
code-smell
Code Smell | Divergent ChangeCode Smell | Divergent Change

Code Smell | Divergent Change

February 21, 2022
This smell can be detected when we observe that at a specific point in our application we perform too many changes, these points can be a certain class, a .js or .ts file that exports certain functions, etc.
codequality
refactorit
code-smell
Code Smell | Primitive ObsessionCode Smell | Primitive Obsession

Code Smell | Primitive Obsession

November 29, 2021
This code smell is given by the abusive use of primitive types when modeling our classes.
codequality
refactorit
code-smell