Input Kludge
This anti-pattern is the effect of not validating user input. In short, the anti-pattern means user can crash the software by providing improper inputs within moments of touching the keyboard.
Exception
Exception
- When the project is meant for academic purpose of learning.
Consequences
Consequences
- Program causes bad user experiences, possibly customer bailing off from using the software.
Symptoms
Symptoms
- When providing an improper input, the system crashes.
Causes
Causes
- Developer does not check ANY user input but assumes users will always provide the correct set of values.
Fixing Recipes
Fixing Recipes
- Review all user input entry.
- Refactor the codes to have input checking by cherry-picking the correct value while leaving all false and unexpected values default to error handling.