Imagine ... You wrote the code; implemented some interfaces, used some design patterns, passed many unit tests, extracted many methods for refactoring and so on. You developed, developed, developed ... But at some mysterious moment, for some reason, you, something inside of you, began to whisper to you that you should write a comment now. Something hurts you that if you do not write a comment, something will be absent, or something may not be completely clear ...
Then you will comment on your code !: (
Could this be a secret sign of poor design?
If you find that if you do not comment on your code at this spiritual (!) Moment, it will not fulfill its mission ; can we consider it a reliable "strong" symptom of a possible poor design in your code?
source
share