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

  • When the project is meant for academic purpose of learning.

Consequences

  • Program causes bad user experiences, possibly customer bailing off from using the software.

Symptoms

  • When providing an improper input, the system crashes.

Causes

  • Developer does not check ANY user input but assumes users will always provide the correct set of values.

Fixing Recipes

  1. Review all user input entry.
  2. Refactor the codes to have input checking by cherry-picking the correct value while leaving all false and unexpected values default to error handling.