Code difficult to read, tricky with names without semantic. Sometimes using language's accidental complexity.
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.
Relations

Code Smell 02 - Constants and Magic Numbers
Maxi Contieri ・ Oct 21 '20 ・ 1 min read
#beginners
#codenewbie
#100daysofcode
#codequality
Also Known as
- Obfuscator
More info
Tags
- Declarative
Discussion (6)
There is no difference between wrong and right code.
Refresh the page. This appears to be a bug in (at least) the Android DEV app.
Yep you are right
From a machine point of view it isn't. The semantic parsing trees are equivalent
The code in the "wrong" example is not being clever at all. It's just obfuscated. That kind is typically written by juniors trying to look smart.
I'd swap the "A.K.A." section with the headline.
In the point.