Code smells - alexanderteplov/computer-science GitHub Wiki
Here we define some of common functional-style programming code smells.
- Too many indentation levels (deep nesting).
- Too long functions/components.
- Too many parameters/props.
- Too many comments.
- String literals instead of constants/internalization.
- Too complex (hard to understand) code.
- Dead code.
- Violating naming conventions/too short names.
- Too many useState.
- Overusing the Render Props or the HoC patterns.
- Mixing view and view-controller (smart and dumb components) in one component.
- Reckless on file structure.
- Circular dependencies.
- Code duplication (if it's not a matter of clarity).