User Interface Design for Programmers: A Book Review
The last time I checked, software was meant to be used.
In order for software to be used, it needs to be useful to those who have not perused all the texts required for a Ph.D. in Computer Science--as well as to those who have. This is rather less common than one might wish in the Open Source community. Often, the applications written for Linux seem to be "by geeks, for geeks". The fact that we are many of doesn't mitigate the preference of Janey-or-Johnny-User for a consistent interface among the applications they use, and for those applications to behave in a way that is comprehensible to someone unfit for MENSA(R) membership.
User Interface Design for Programmers (Apress, 2001) is written for programmers, especially programmers who a) think user interface design is an artistic pursuit, b) have a sense of humour, and c) can no longer think like Janey-or-John-User.
Who? Us? Yes.
The reader of Mr. Spolsky's work will require both a sense of humour, and some acquaintance with the cultural context in which he writes. Lacking either or both, the reader will not go all verklemmt, but will go straight to meshuggah, neither passing GO nor collecting $200. This is not a book for those who think tech and storytelling don't mix. For those of us who like to smirk and learn at the same time, it's a wonderful read.
There are not a great many software engineers who would deem their work as being of signifigant importance to, say, mental health. Or human rights. Yet Spolsky begins with the premise that there is some relationship between being able to control one's environment and mental well-being, and the relationship between not being able to control one's environment and depression. Specifically, he relates how this applies to the users of computer programs:
UI is important because it affects the feelings, the emotions, and the mood of your users. If the UI is wrong, and the user feels like they can't control your software, they literally won't be happy and they'll blame it on your software. If the UI is smart, and things work the way the user expected them to work, they will be cheerful as they manage to accomplish small goals. Hey! I ripped a CD! It just worked! Nice software!" (p. 6)
The moral of this story? "A user interface is well designed when the program behaves exactly how the user thought it would". (ibid., emphasis mine) What? Not how we think it should?
Spolsky uses 18 short chapters to illustrate the various principles and pitfalls of UI. (There are some pratfalls, too, some of which involve UI designers from the Redmond Contingent, as well as from Juno). The author's anecdotes are lively, and generally point to a specific corollary or rationale involved in designing applications that "make users happy". There are worse goals in the development of software.
"Good UI designers use consistency intelligently, and though it may not show off their creativity as well, in the long run it makes users happier." (p. 48)
Spolsky might have added that this can be taken to extremes, as in the case of StarOffice's 'butterfly start button'. On the whole, though, he makes a good point. For those of us who would like to increase the number of Linux users, consistent interfaces make the job of helping newbies view Linux as more user-friendly. This does not preclude efficiency or security, by the way: the sooner the newbie can accomplish what s/he intended to, the less likely s/he is to look for an alternate command that will permit him or her to accomplish something unintended.
"Design for extremes so that your product can be used under extreme conditions, and design for extremes so that your product is more comfortable to use under normal conditions" (p. 59)
The good people who developed wheelchair ramps know this principle well. Slopes are easier to navigate than steps, for both wheelchairs and normal pedestrian traffic. Well-cushioned seats in vehicles are more comfortable and, in a bizarre twist of fate, safer than their harder counterparts. Food that doesn't take as long to cook retains more of its original nutrients...well, okay, maybe that's pushing it. Sometimes pandering to creature comfort and/or sheer laziness can be put to good use.
"A good heuristic is obvious, easily undone, and extremely likely to be correct. Other heuristics are annoying." (p. 113)
Microsoft Bob died. Many users of MS Office would prefer the spellcheck to simply let them make spelling mistakes and suffer the consequences. The Paperclip infuriates everyone over the age of 5. Don't create bells and whistles that require removal by less than obvious means.
"Let's do the time warp again"
One of the most salient points Spolsky raises is what happens to time between development and software use. Days of development yield seconds of software to the user; months spent on a project yield knowledge the user won't have in minutes of its use; seconds of time required to load an application (or a web page) feel like hours of boredom to a user. Lest we forget.
Free DevOps eBooks, Videos, and more!
Regardless of where you are in your DevOps process, Linux Journal can help!
We offer here the DEFINITIVE DevOps for Dummies, a mobile Application Development Primer, and advice & help from the expert sources like:
- Linux Journal
- Be a Mechanic...with Android and Linux!
- New Products
- Flexible Access Control with Squid Proxy
- Users, Permissions and Multitenant Sites
- Security in Three Ds: Detect, Decide and Deny
- Tighten Up SSH
- High-Availability Storage with HA-LVM
- Non-Linux FOSS: MenuMeters
- Solving ODEs on Linux
- Nmap—Not Just for Evil!