mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 01:06:23 +02:00
10 lines
386 B
Markdown
10 lines
386 B
Markdown
|
|
# Refactor Candidates
|
||
|
|
|
||
|
|
After TDD cycle, look for:
|
||
|
|
|
||
|
|
- **Duplication** → Extract function/class
|
||
|
|
- **Long methods** → Break into private helpers (keep tests on public interface)
|
||
|
|
- **Shallow modules** → Combine or deepen
|
||
|
|
- **Feature envy** → Move logic to where data lives
|
||
|
|
- **Primitive obsession** → Introduce value objects
|
||
|
|
- **Existing code** the new code reveals as problematic
|