summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@redhat.com>2015-07-15 17:28:44 +0200
committerStef Walter <stefw@redhat.com>2015-07-15 17:28:44 +0200
commit56e0ff06ee09a13c96233d9750f6a10dcf85f32a (patch)
treed4d5c0a5194840b25e4c27cc9dbf79ce6c19ec39
parenteca6fceb02969a81ac1198a9422caa4e1c617347 (diff)
Add article about the Wizard anti-pattern
-rw-r--r--content/images/create-new-directory.pngbin0 -> 9656 bytes
-rw-r--r--content/images/fedora-22-server-installer.pngbin0 -> 119746 bytes
-rw-r--r--content/images/windows-installer.pngbin0 -> 168681 bytes
-rw-r--r--content/images/windows-installer.xcfbin0 -> 461812 bytes
-rw-r--r--content/images/wizard-anti-pattern.pngbin0 -> 8328 bytes
-rw-r--r--content/images/wizard-anti-pattern.xcfbin0 -> 58773 bytes
-rw-r--r--content/technical/installer-anti-pattern.md102
7 files changed, 102 insertions, 0 deletions
diff --git a/content/images/create-new-directory.png b/content/images/create-new-directory.png
new file mode 100644
index 0000000..a990860
--- /dev/null
+++ b/content/images/create-new-directory.png
Binary files differ
diff --git a/content/images/fedora-22-server-installer.png b/content/images/fedora-22-server-installer.png
new file mode 100644
index 0000000..fd9747f
--- /dev/null
+++ b/content/images/fedora-22-server-installer.png
Binary files differ
diff --git a/content/images/windows-installer.png b/content/images/windows-installer.png
new file mode 100644
index 0000000..97417f2
--- /dev/null
+++ b/content/images/windows-installer.png
Binary files differ
diff --git a/content/images/windows-installer.xcf b/content/images/windows-installer.xcf
new file mode 100644
index 0000000..56eecd4
--- /dev/null
+++ b/content/images/windows-installer.xcf
Binary files differ
diff --git a/content/images/wizard-anti-pattern.png b/content/images/wizard-anti-pattern.png
new file mode 100644
index 0000000..f94f1f5
--- /dev/null
+++ b/content/images/wizard-anti-pattern.png
Binary files differ
diff --git a/content/images/wizard-anti-pattern.xcf b/content/images/wizard-anti-pattern.xcf
new file mode 100644
index 0000000..5ba0899
--- /dev/null
+++ b/content/images/wizard-anti-pattern.xcf
Binary files differ
diff --git a/content/technical/installer-anti-pattern.md b/content/technical/installer-anti-pattern.md
new file mode 100644
index 0000000..6639ea2
--- /dev/null
+++ b/content/technical/installer-anti-pattern.md
@@ -0,0 +1,102 @@
+Title: The Wizard Anti-Pattern
+Date: 2015-07-15
+Category: Design, UX
+Tags: design, user interface, user experience, installer
+Slug: installer-anti-pattern
+
+### AKA: the Installer Anti-Pattern
+
+There's a common user experience anti-pattern that pops up all over the place. The 'wizards' in Windows really epitomized this, and hence the anti-pattern is named after them. But it's common elsewhere too, particularly in installers.
+
+Here goes:
+
+<div style="font-size: 120%; line-height: 140%; padding: 1em 3em; background-color: #EEE;">
+Interactive choices offered to the user during an install, creation or setup process are an anti-pattern. The negative consequences are in proportion to the number of configuration choices involved.
+</div>
+
+Or put another way: "Interactive configuration during installation is bad."
+
+Why? There are two negative consequences of interactive configuration during setup:
+
+ 1. The worst time for a user to make choices about a system, application or feature is before they've started using it.
+ 2. Once the install, setup or creation process completes, the user has no idea how to change the choices they made.
+
+The first consequence is pretty obvious. Asking the user questions they cannot answer (or cannot *yet* answer) is unfortunately pretty common in software today. It needs to stop.
+
+Fix the application, software or operating system so that it does the right thing, or an acceptable default. Then let the user adjust it later if necessary. But don't lazily punt responsibility to the user by asking them to make decisions up front.
+
+The second consequence reqires a little more discussion. When the user configures something during a wizard or setup process, they learn (whether consciously or subconsciously) how to perform that configuration task. This is useless disposable throw-away knowledge. We then force the user to relearn how to do it differently when they want to change that configuration choice. You can almost hear the internal dialog:
+
+ * "Wait ... maybe I should have chosen a different time zone ... this is a server after all."
+ * "Hmmm, how do I change that? I just clicked that map thingy a moment ago."
+ * "I wonder if I should just reinstall so and make a different choice this time?"
+
+Now obviously there are immutable aspects of the setup process. And those unfortunately require the user to make choices. But when something really is immutable it cleanly avoids the second problem above: the user cannot change it. This mitagates the anti-pattern somewhat.
+
+## Examples
+
+It's easy to complain about Windows. Wizard style dialogs ask you a bunch of questions and then create something or perform some job. These wizards are pretty much the worst example of this anti-pattern ... and Windows has a lot of them.
+
+![Wizard Anti-Pattern](images/wizard-anti-pattern.png)
+
+But Windows does get this right in a several other places.
+
+The Windows installer asks minimal questions. Here are all the choices asked during the Windows 2008 Server install: 1) The language, 2) What to install, 4) Where to install it. In my opinion the choice on screen 3) is a kludge related to Windows upgrade brokenness. But in spite of that the installer manages to largely avoid this anti-pattern. Note the lack of a prompt for creating user accounts ... that happens later.
+
+![Windows 2008 Installer](images/windows-installer.png)
+
+Another trivial good example of avoiding this anti-pattern is the *Create new directory* workflow you'll find in most file browsers.
+
+![Create new directory](images/create-new-directory.png)
+
+Instead of popping up a dialog asking for the initial directory name, the directory is created and you're then ready to type the name. This has been implemented in various ways, but the core design concept is that the user learns one workflow for naming a directory, whether it's a new directory or one that's renamed.
+
+
+A bad example? Sadly most Linux installers end up as pretty bad examples. Operating system installers are tricky ... mostly because hardware sucks. So we end up asking the user to make choices before they've started to use the system: bad. But as noted above, this is less of a problem for immutable things, such as where to install the operating system's files.
+
+![Fedora Server Installer](images/fedora-22-server-installer.png)
+
+But it goes down hill from there. Most interactive Linux installers go wild and present the user with all sorts of choices, and run headlong into this anti-pattern.
+
+Almost all of these configuration choices should happen post install, with a repatable user experience.
+
+## Solution
+
+So what does it take to fix this? It's not always easy. Design and UX are not just polish on the surface. Getting the UX right often affects software deeply.
+
+Lets start with these concepts:
+
+ * Certain aspects of a system/application/feature are effectively immutable. Lets call these **immutable constants**.
+ * Other aspects of a system/application/feature are changeable. Lets call these **configuration options**.
+
+Which leads us to:
+
+ 1. Most immutable constants should be internalized and not exposed to the user.
+
+ For example, never ask the user to choose between one of several dependencies that the software needs in order to function. Make choices like this on behalf of the user.
+
+ 2. Some immutable constants need to be specified by a user, and thus become interactive choices in setup process.
+
+ A user may need to choose a location to install the software, or perhaps a domain name is an immutable property of the system.
+
+ 3. Configuration options should have intelligent, usable, acceptable defaults.
+
+ The system or application should be able to function in a coherent and secure manner without requiring the user choose configuration options. Some features may be disabled until configured.
+
+ 3. Choices related to configuration options should happen after the install process.
+
+ The user experience for configuring the application or system should be discoverable and usable. It should be obvious to the user where to go to change a configuration option post install. [Hint.](http://cockpit-project.org/)
+
+The corollary here is to make the system or application have a minimal amount of immutable constants that need to be specified by the user and therefore:
+
+<div style="font-size: 120%; line-height: 140%; padding: 1em 3em; background-color: #EEE;">
+A theoretically perfect setup process has no interactive choices.
+</div>
+
+## Summary
+
+Feel guilty when you create a guided setup wizard, or add a interactive choice to installer. That's a good guilt.
+
+Try to figure out why a choice is necessary. Is it an immutable constant? Is there a sane default that should be used instead? What is the root cause of pushing this choice on the user?
+
+It goes without saying ... well okay I'll say it ... an automated batch installer can and should allow options to be set in order to bring up the system in a preconfigured way. A great example of this is [Kickstart](https://github.com/rhinstaller/pykickstart/blob/master/docs/kickstart-docs.rst). But those are not interactive choices, therefore this anti-pattern does not apply.