In these days when processor power is cheap and programmers are serving the whole world, it's all too common to see systems requiring input based on how the system works, instead of how people work. This user-unfriendly approach exposes these systems to competition from products that are nicer to their users, though we might view them as technically inferior.
To make your system widely-adopted, give it a humane user interface (be it commands, switches, input text files or GUI). Further, expect to redesign and adapt this interface as users ev0lv3, even when you don't like their 3V01U7|0N. The needed goal is to optimize human effectiveness and minimize potential human errors, i.e. poke yoke.
To that end, please consider the following advice -
- When using real-time parsers to check syntax, make sure they don't interrupt the user's pattern of entry. Do mark the error, but don't require the user to fix it right then.
- Never throw formatting errors unless the user's meaning is ambiguous, and only then when the system needs non-ambiguity. For example, phone numbers read by people can be ambiguous, while auto-dialed ones should not.
- Where entries must be unambiguous, (e.g. entering credit card numbers,) parse the input and auto-correct all unambiguous exceptions (e.g. dropping non-numerics, switching to all uppercase, etc.)
- For ambiguous exceptions, calculate the exception level in the parser and display a likely guess of the correct entry. For example, a user entering a two-digit birth year probably means one in the past 100 years, a reservation is probably in the next 100 years, and a food safety date is probably within 50 years either way.
- Never, EVER, lose or discard a person's work. Instead -
- * Allow users making incomplete entries to save them and finish them later. Do this automatically for users that time-out.
- * Allow users making errors to correct them in the original context with the non-parsible portion highlighted.
- * Disable, handle or support undo on all "buttons of death" (e.g. jumping to the last page on Backspace, overstriking a highlighted field, etc.)
- * Support undo and redo
- Do not require entries to follow a specific order.
- Do not require users to re-enter anything for the sake of simpler code.
- * Store entries the user context and recall them from there as needed.
- * Compute all values that can be derived, e.g. browser version, display size, amount of memory remaining, number of characters left before reaching allowed field size, etc.
- Present data in the form optimal for the user's task.
This doesn't mean that you should never require specific format or duplicated data -- they can have their own uses. For example, when changing your password, you're prompted to enter it twice. This serves to verify a concealed entry and avoid losing system access. This is close to poke yoke, so it's OK. Similarly, if the input files are to be heavily edited by various people, then it's good to keep them readable by restricting markup syntax, stripping formatting markup added by word processing bloatware, etc. Of course, any syntax enforcement should be paired with intelligent validation, detailed error listing, and as much auto-correction as possible.
This is a good practice: Use your computation power to ease the use of markup, even if that complicates your parser. Users will be grateful for a forgiving parser.