开发者

What techniques can I use to always display user friendly error messages?

开发者 https://www.devze.com 2022-12-20 12:29 出处:网络
What techniques can I use to always display user friendly error mes开发者_如何学运维sages? I guess I\'m looking for programming, testing, and management techniques that produce user friendly messages.

What techniques can I use to always display user friendly error mes开发者_如何学运维sages? I guess I'm looking for programming, testing, and management techniques that produce user friendly messages.


Not sure what you are aiming at, but if it is user friendly:

  • Speak the users language.
  • Don't surprise the user.
  • Provide clear exit messages (if it is a dialog).


  • Always use human language, no tech speak (unless your audience is technically minded)
  • Always provide the user with an action to take, even if that action is go back
  • Always clearly seperate the error message from rest of the GUI e.g. modal popup window
  • If you are logging errors, always provide a reference number for the user to quote if there is a direct feedback mechanism
  • If the error occurs during a step-by-step process always preserve the previous selections
  • If the error is one of validation, clearly explain why the user input has failed validation, display the error message next to the invalid field (not all listed at the bottom) and set focus on the invalid field


In addition to the answers here, I always find that keeping your error messages "calm" is helpful. Don't frighten the user by saying in big caps "THERE WAS A CRITICAL ERROR AND THE PROGRAM MUST SHUT DOWN!" The user, especially if he is not tech savvy, will think that he did something wrong and will likely freak out.

Keep your messages calm, explain the situation, and provide the user with steps to take to either correct the issue or contact someone who can.


This is just one part of it, but I recommend using TDD (test driven development). Write tests that expose errors and make sure that the program responds in the correct fashion.

To put it another way, emphasize the importance of error messages by making them part of your user stories.

0

精彩评论

暂无评论...
验证码 换一张
取 消