TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Error messages are part of your UI

17 点作者 jasoncrawford超过 15 年前

2 条评论

makecheck超过 15 年前
Agreed, it's important to present errors properly. But really, the best solution is to <i>not present an error at all</i>, in every possible case. Auto-recovery is very important.<p>The example of the Windows hibernate message, while trying to illustrate a different point, is really a better example of something the user shouldn't have been asked in the first place. The solution is simple: if Windows <i>can</i> try again, why didn't it just <i>do</i> that, maybe a few times, before even thinking of bothering the user?<p>The case of a failed key may be less trivial, since you don't necessarily want a page that helpfully produces valid keys from invalid ones. And yet, if the key is long enough, and the mistake is small enough (e.g. 2 characters out of 16), perhaps the web page could figure out the closest valid key and just log in using that key (or have a Google-style "did you mean XYZ-123-ABC" link for the matching key).
评论 #932860 未加载
评论 #933362 未加载
jasoncrawford超过 15 年前
Disclosure: I'm posting this to promote my blog and get feedback on it. I read the guidelines and that seems to be within them. Someone let me know if if not.<p>I'd love HN folks' feedback on this and my previous posts; I'm just getting started as a blogger.
评论 #933102 未加载