How do you deal with intentionally bad code?
Posted
by
mafutrct
on Programmers
See other posts from Programmers
or by mafutrct
Published on 2010-09-27T08:47:05Z
Indexed on
2011/02/11
23:33 UTC
Read the original article
Hit count: 431
bad-code
There are many stories about intentionally bad code, not only on TDWTF but also on SO. Typical cases include:
- Having a useless time-wasting construct (e.g. an empty loop counting to some huge value) so programmers can easily "speed up" the application by removing it when they are tasked to.
- Providing intentionally misleading, wrong or no documentation to generate expensive support requests.
- Readily generating errors, or worse, generating even though everything worked fine, locking up the application so an expensive support call is required to unlock.
These points display a more or less malicious attitude (even though sometimes by accident), especially the first point occurs rather often.
How should one deal with such constructs? Ignore the issue, or just remove the offending code? Notify their manager, or speak to the person who introduced the "feature"?
© Programmers or respective owner