usability

How does one write good error messages?

别等时光非礼了梦想. 提交于 2019-11-28 16:12:20
While this is more of a written language issue than a coding one, it is something that programmers must do in circumstances where copy is not provided by a client or someone else. Any examples of error messages, good or bad, are welcome to make the point. I briefly searched and could not find a dupe thread. Ok, have at it. Thanks, all. Apologise. Say what went wrong. Say how to resolve it. Be polite. The message should be worded so that the application accepts responsibility for the problem. Never blame or criticize the user or make them think it's their fault. Example: "Sorry, the file could

Easily digestible UI tips for developers [closed]

╄→尐↘猪︶ㄣ 提交于 2019-11-28 16:07:17
What are some key UI design tips that every developer should know? While there are a number of UI resources for developers (for example, Joel Spolsky's User Interface Design for Programmers ), I'm interested in more of a bullet list that can be communicated in 1 to 2 pages. I'm interested in more tactical, day-to-day UI tips , as opposed to overarching UI design goals that would be covered in a UI design meeting (presumably attended by at least one person with a good UI sense). A collection of these tips might cover about 80% of the cases that an everyday programmer would come across. use a

How can I use credit card numbers containing spaces?

只愿长相守 提交于 2019-11-28 16:01:33
Some fancy websites show an error dialog when it is detected that an untrained shopper has entered a credit/debit card number as it is printed on their card with spaces. Is it possible in some way to write a Java web app that handles these numbers with spaces as if they were correct? My view is that any Web app that rejects a credit card number with spaces isn't doing its job. When you receive a credit card number, it's easy enough to do: String ccNumber = ccNumber.replaceAll("[\\s-]+", ""); to remove spaces and dashes (some use those too). Then validate the result. You'll simply annoy your

Should I avoid using “text-align: justify;”?

本秂侑毒 提交于 2019-11-28 15:38:00
Is there any reason to avoid using text-align: justify; ? Does it reduce readability or cause problems? Firstly, this is purely a design-related problem and solution. The design of your grid specifies if justifying text is needed. I think justify align alone has no major effect on usability. Bad typography that makes text illegible is what decreases usability. That said, make sure you have solid contrasts and a good balance of spacing in your type. Font-size matters too. This site is a successful attempt at justifying text online. Since you can't control the spaces between letters and words

Delay HTML5 :invalid pseudo-class until the first event

感情迁移 提交于 2019-11-28 05:38:01
I recently discovered that the :invalid pseudo-class applies to required form elements as soon as the page loads. For example, if you have this code: <style> input:invalid { background-color: pink; color: white; } input:valid { background-color: white; color: black; } </style> … <input name="foo" required /> Then your page will load with an empty pink input element on it. Having validation built in to HTML5 is great, but I don't think most users expect the form to validate before they've had a chance to enter any values at all. Is there any way to delay the application of the pseudo-class

Logging vs. Debugging

两盒软妹~` 提交于 2019-11-28 04:03:30
问题 Background: I've inherited a web application that is intended to create on-the-fly connections between local and remote equipment. There are a tremendous number of moving parts recently: the app itself has changed significantly; the development toolchain was just updated; and both the local and remote equipment have been "modified" to support those changes. The bright side is that it has a reasonable logging system that will write debug messages to a file, and it will log to both the file and

Should default language of multilingual website be a part of the URL? [closed]

前提是你 提交于 2019-11-28 03:59:25
问题 I have set up a multilingual website, whose default language is English and it is translated in many more languages. We have chosen for the subdirectory URL strategy, so that our URLs are like example.com/en , example.com/fr etc. Should the default language be omitted from those URLs? So instead of example.com/en example.com/fr example.com/de we could use example.com (default site language, EN in this case) example.com/fr example.com/de Which is better in terms of SEO, UX, best practices? p.s

Which screen reader would be best to test site accessibility and how to configure that? [closed]

做~自己de王妃 提交于 2019-11-28 02:50:36
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Which screen reader would be best to test site accessibility and how to configure that screen reader to test website (or default

Mac OS X Lion, scrollbars, and website usability

前提是你 提交于 2019-11-27 21:05:54
问题 I have a number of overflowed divs that I use to display a lot of content in small space (like long lists, etc). Giving the divs the CSS rule of overflow: auto; always worked like a charm, giving the user scroll bars to indicate more content was available. This is kinda thrown out the window with Mac OS X Lion, which (as a default) hides the scroll bars unless you're actively scrolling. I like it when dealing with an application on my computer, because I think there are very strong visual

How does Financial Times add a disclaimer when pasting text?

天大地大妈咪最大 提交于 2019-11-27 20:46:37
问题 Here is an example of what happens when pasting text from Financial Times, the top paragraph is added. Thanks in advance! Example: Please respect FT.com's ts&cs and copyright policy which allow you to: share links; copy content for >personal use; & redistribute limited extracts. Email ftsales.support@ft.com to buy additional rights >or use this link to reference the article - http://www.ft.com/cms/s/0/792f1aec->9600-11e0-8256-00144feab49a.html#ixzz1PFrYZiD0 Goldman Sachs gave a paid