gpt4 book ai didi

user-interface - 有人使用错误消息样式指南吗?

转载 作者:行者123 更新时间:2023-12-03 00:57:30 27 4
gpt4 key购买 nike

我注意到错误消息往往以几种常见的样式编写。要么是完整的、休闲友好的句子,要么是并不总是形成完整句子的缩短的被动句子。两者中的后者似乎更常见 - 尽管可能不像我在很多应用程序中看到的随意混合样式那么常见。

有人在他们的风格指南中包含错误消息吗?我对这些东西的一致语法结构的看法比对它们的内容更感兴趣,这已经been discussed.

最佳答案

两者都是iPhone Human Interface GuidelinesApple Human Interface Guidelines包含有关警报的部分。

此外,Windows User Experience Interaction Guidelines有一些不同类型的对话框的信息,包括错误消息。

(iPhone)

As you compose the required alert title:

  • Keep the title short enough to display on a single line, if possible. A long alert title is difficult for people to read quickly, and it might get truncated or force the alert message to scroll.
  • Avoid single-word titles that don’t provide any useful information, such as “Error” or “Warning.”
  • When possible, use a sentence fragment. A short, informative statement is often easier to understand than a complete sentence.
  • Don’t hesitate to be negative. People understand that most alerts tell them about problems or warn them about dangerous situations. It’s better to be negative and direct than it is to be positive but oblique.
  • Avoid using “you,” “your,” “me,” and “my” as much as possible. Sometimes, text that identifies people directly can be ambiguous and can even be interpreted as an insult.
  • Use title-style capitalization and no ending punctuation when:
  • The title is a sentence fragment
  • The title consists of a single sentence that is not a question
  • Use sentence-style capitalization and an ending question mark if the title consists of a single sentence that is a question. In general, consider using a question for an alert title if it allows you to avoid adding a message.
  • Use sentence-style capitalization and appropriate ending punctuation for each sentence if the title consists of two or more sentences. A two-sentence alert title should seldom be necessary, although you might consider it if it allows you to avoid adding a message.

If you provide an optional alert message:

  • Create a short, complete sentence that uses sentence-style capitalization and appropriate ending punctuation.
  • Avoid creating a message that is too long. If possible, keep the message short enough to display on one or two lines. If the message is too long it will scroll, which is not a good user experience.

Avoid lengthening your alert text with descriptions of which button to tap, such as “Tap View to see the information.” Ideally, the combination of unambiguous alert text and logical button labels gives people enough information to understand the situation and their choices. However, if you must provide detailed guidance, follow these guidelines:

  • Be sure to use the word “tap” (not “touch” or “click” or “choose”) to describe the selection action.
  • Don’t enclose a button title in quotes, but do preserve its capitalization.

-

(Mac)

Alert message text. This text, in emphasized (bold) system font, provides a short, simple summary of the error or condition that summoned the alert. This should be a complete sentence; often it is presented as a question. See “Writing Good Alert Messages” for more information.

Informative text. This text appears in the small system font and provides a fuller description of the situation, its consequences, and ways to get out of it. For example, a warning that an action cannot be undone is an appropriate use of informative text.

A good alert message states clearly what caused the alert to appear and what the user can do about it. Express everything in the user’s vocabulary.

To make the alert really useful, provide a suggestion about what the user can do about the current situation. Even if the alert serves as a notification to the user and no further action is required, provide as much information as needed to describe the situation.

-

(Microsoft)

The characteristics of good error messages

In contrast to the previous bad examples, good error messages have:

  • A problem. States that a problem occurred.
  • A cause. Explains why the problem occurred.
  • A solution. Provides a solution so that users can fix the problem.

Additionally, good error messages are presented in a way that is:

  • Relevant. The message presents a problem that users care about.
  • Actionable. Users should either perform an action or change their behavior as the result of the message.
  • User-centered. The message describes the problem in terms of target user actions or goals, not in terms of what the code is unhappy with.
  • Brief. The message is as short as possible, but no shorter.
  • Clear. The message uses plain language so that the target users can easily understand problem and solution.
  • Specific. The message describes the problem using specific language, giving specific names, locations, and values of the objects involved.
  • Courteous. Users shouldn't be blamed or made to feel stupid.
  • Rare. Displayed infrequently. Frequently displayed error messages are a sign of bad design.

关于user-interface - 有人使用错误消息样式指南吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3354867/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com