refactoring
Concept
Refactoring
- improving the internal structure of code in small steps without modifying its external behaviour
- improving the code quality
- makes it easier to spot hidden bugs
- improve performance
Common catalogs
- Consolidate Conditional Expression
- Decompose Conditional
- Inline Method
- Remove Double Negative
- Replace Magic Literal
- Replace Nested Conditional with Guard Clauses
- Replace Parameter with Explicit Methods
- Reverse Conditional
- Split Loop
- Split Temporary Variable
Code smells