Code Smell 06 — Too Clever Programmer
Code difficult to read. Tricky with names without semantic. Sometimes using language’s accidental complexity.
Published in
Oct 25, 2020
Problems
- Readability
- Maintainability
- Code Quality
- Premature Optimization
Solutions
- Refactor the code
- Use better names
Examples
- Optimized loops
Exceptions
- Code that must be optimized for low level operations.
Sample Code
Wrong
Right
Detection
Automatic detection is possible in some languages related to complexity, bad names, post increment variables.
Also Known as
- Obfuscator
Tags
- Declarative
Relations
Programming can be fun, so can cryptography; however they should not be combined.
Kreitzberg & Shneiderman.
This article is part of the CodeSmell Series.