Code Smell 319 - Hardcoded Stateless Properties

📰 Hackernoon

AI can easily detect this smell without explicit instructions. When you show AI a class with new keywords in the constructor, it recognizes the pattern as hardcoded coupling. AI identifies that stateless utility classes should be injected rather than instantiated internally. The detection is straightforward because the pattern is syntactically obvious and semantically harmful.

Published 12 Apr 2026
Read full article → ← Back to Reads