Hacker News new | past | comments | ask | show | jobs | submit login

Not as hard as tedious. Here is a trivial example: your application generates a message that informs the user about the number of file copied. Most developers generate the message templated as this:

   {N} file(s) copied.
Which kinda works, but not so user friendly because "0 file(s) copied" sounds non-human. It should be "No files copied". What a more UX-focused developer would it is write something like:

   match N with
   | 0 -> "No files copied"
   | 1 -> "1 file copied"
   | _ -> "{N} files copied"
The latter is not very hard. It's just tedious work that many people don't do.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: