我可以使用哪些技术来始终显示用户友好的错误消息?
我可以使用哪些技术来始终显示用户友好的错误消息?我想我正在寻找能够生成用户友好消息的编程、测试和管理技术。
What techniques can I use to always display user friendly error messages? I guess I'm looking for programming, testing, and management techniques that produce user friendly messages.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
不确定您的目标是什么,但如果它是用户友好的:
Not sure what you are aiming at, but if it is user friendly:
除了这里的答案之外,我总是发现保持错误消息“冷静”是有帮助的。不要用大写字母“出现严重错误,程序必须关闭!”来吓唬用户。用户,尤其是不懂技术的用户,会认为自己做错了什么,并可能会惊慌失措。
保持消息平静,解释情况,并向用户提供纠正问题或联系可以纠正问题的人员的步骤。
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.
这只是其中的一部分,但我建议使用 TDD(测试驱动开发)。编写暴露错误的测试并确保程序以正确的方式响应。
换句话说,通过将错误消息作为用户故事的一部分来强调它们的重要性。
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.