Tuesday, 19 April 2011

From Zero to Agile in six months, part one

A couple of years ago, I worked on a Scrum project as product owner. It was my first Agile project. It was also my employer's first, and the first for the members of the Scrum team. All parties concerned are now committed to Agile methods.

The original team members wouldn't work any way other than Agile. The company runs every project using Scrum. I'm writing a blog about how great these methods are.

Doing one project Agile transformed us into Agile enthusiasts. We experienced how Scrum works, and we liked it. Here's how we got started…

Zero: The wall of questions

The company was, and is, in the business of mobile phone e-mail and PIM synchronisation. At the time, we offered a “powered by” service, that was sold by mobile phone operators. Our operators were asking us to support a new phone platform, called Android. We already supported a number of other platforms for them, such as old Windows Mobile, Symbian S60, and J2ME.

The company's product has a client-server architecture. So the decision to support a new phone platform is, at one level, no more than a decision to port the mobile client to that platform. But at a deeper level, the decision being made is how to transform the client for the new platform. That decision needs to be informed. The decision-maker, in the product management department, needed information, and asked all the following questions:

  • What kind of user interface do applications on this platform have? Should our application be like native applications, or be like our application on other platforms?
  • What PIM integration capabilities does the platform offer? We can produce a sandbox client, that has its own e-mail, contacts, calendar and tasks applications. We can also produce an engine client that synchronises directly to the native stores, with minimal user interface of its own. Or we can produce a hybrid, with some of its own sandbox applications, and some integration. Which of these could we do? Which should we do?
  • Can we pre-install our client “on-deck” so that customers can start using the service as soon as they take their new phone out of the box (OOB)? Our customers want this, but will it place restrictions on our client? Who would have to sign off the application in this case? The manufacturer? Google themselves? If we can't pre-install, what are our deployment options? The existing product can be downloaded from the service operator's website. Can we do that on the new platform?
  • Does the platform support background execution? We run constant synchronisation of changes to the user's PIM, not a foreground download-now service.
  • Our operators set up specific packet data routing and billing for users of our service. We also integrate with their AAA, LDAP or equivalent service for automatic identification of users, by MSISDN. This typically requires selection of Access Point Node (APN) at the device. Can we do that on this platform? Can we stop the user synchronising over WiFi, where we cannot identify them?
  • What do we need to do to optimise battery life? Half of this is in the Network, but the other half is on the device.
  • The platform has native synchronisation capabilities, with Gmail. Can we block that? How can our service integrate with that?
  • What kind of intrusive notifications or alerts can be played to the user, for example when they have new e-mail or a calendar appointment?
  • If our application is integrated with the native PIM stores, for what kind of change notifications can our application register? If there are no change notifications, and a user has say 1,000 contacts on their phone, is it feasible to poll the PIM stores?
  • What built-in encryption and data compression capabilities does the platform offer?
  • Are handsets available? Interaction design, and final testing, is best done with physical handsets, not emulators.
  • Is the platform mature enough? In other words, should we port now, or should we wait?
  • What is the commercial value of supporting this platform? Is it ever going to sell enough units?
These are all reasonable questions, but to whom are they addressed? Who will provide the answers? If there were a project team, then they would be answering. But we haven't decided to do the project yet, so there is no project team.

One: The decision

With no project team in place, what product management did was to ask around. They persuaded a developer to find the time to install the Android SDK. The developer had a look and told product management what they thought. Product management installed the SDK themselves. They tried out some things on the emulator, or on such pre-release devices as were available. They googled. After doing that for a week or two, they made the following statement about the decision to make an Android port of our client:

“This is not a decision that a SCRUM can deal with … This is a decision process that needs to be driven by product management and get executive level sign-off. These are non-trivial investments.”

It's true that it would be a non-trivial investment to dedicate a team to porting the client to the Android platform. The other two statements were false, or at least I believed them to be. I approached the head of engineering, directly.

(I should probably point out that I was in neither engineering nor product management, but in a separate product design group.)

The head of engineering was receptive. He had already anticipated that he would be asked to deliver an Android client sometime soon. He had assembled a team: coders, testers, even a Scrum Master. The team had been waiting a month for product management to assign a Product Owner. When I offered to be the product owner myself, he said: Yes.

Two: Agile answers

So the team got the go-ahead. Great. But the go-ahead to do what? Where should they start?

Well, the questions posed by product management still needed to be answered, so the team should start there. Product Management were right with the questions they were asking. Where they were wrong was thinking that a Scrum could not give them answers. True, the main delivery of a Scrum team is usually software, but it is also possible for a Scrum to answer questions.

A Scrum works from a product backlog, comprised of user stories. A user story has a title, a list of confirmations, and some conversation. (When using cards, the conversation is what is written on the back of the card.) For the Scrum to give product management answers then, the questions need to be rewritten as user stories. Here is an example of a question rewritten as a user story, from the team's first sprint:

ID: 20027

Title: Use service that is integrated with native PIM applications

Conversation
Proof of integration capabilities with native PIM applications
This story could be met by a small stand-alone test application
Support for recurrent calendar items was part of this but is now a separate story
Confirmation
Engineering assessment written
Try each of the following operations: Read, Create, Edit, Delete on each of the following native stores: Contacts, Task, Calendar
Try non-recurrent calendar items only

As the story says, at the end of the sprint, the product owner will have run a test application that demonstrates the operations. The product owner will also have read an Engineering assessment. Only then will the story be marked as Done.

The question will have been answered, and the answer will be objective. The product owner could show the assessment and test application to their colleagues. Compared with the pre-Agile asking around, this approach relies less on what was said or googled, and more on what can be shown. The cost is higher, but the process has created concrete evidence, not hearsay.

All the functional questions can be rewritten as user stories. They may not all be answered in the first sprint but, week-by-week, the Scrum team will work its way through the product backlog. On this particular project, the Scrum had answered all but one question after two sprints. The remaining question was one that actually could not be answered by a Scrum team, at least not a software development Scrum team.

This was the question that related to the commercial value of doing the work, and is addressed by Scrum in a different way.

Three: Agile commercials

Scrum does not answer the commercial value question directly, but it does represent a resolution to the issue of commercial value.

Implicit in Scrum is that we might re-assign the team at the end of a Sprint. The work done in that sprint could be wasted, if the project was cancelled at that point. Our Sprints were three weeks long, so the company stood to waste 3 weeks of the team's time by cancelling. With a team of ten, that's 150 person-days. Does that sound bad?

Under the pre-Agile process that the company used to run, the team would have been put on the project for six months. With the same team, that represents 1,300 person-days. This means that the question being asked is: In six months time, will it have been worth spending 1,300 person-days on this project?

Under Scrum, the question being asked was: Is it worth spending 150 days right now? Then, in three weeks time, the question will be: Is it worth spending another 150 days?

So, although Scrum does not address the issue of commercial value explicitly, it does make the commercial questions easier to answer.

Conclusion of part one

The evidential approach of Scrum lends itself well to the investigation of new product areas. The length of a Sprint represents a cap on the amount of effort being risked. But …

Did Scrum deliver? After the investigation, and assuming the effort did get risked right up to the end of the product development, did the company end up with software that could be sold?

Yes. Six months after the decision to wait had been ignored, the client was in the Android market place. Everybody had learnt a great deal, including Product Management. They described the project at that stage as:

“a tremendous job … the process … in place has returned us the best client we’ve ever done.”

That turn-around in attitude, and the profitability of the software, was a success for Agile methods.

A side point is that sticking to procedure will not always ensure that your employer takes the right action. Sometimes you need a personal network, and a personal reputation, to be effective.

The next post will be about the use of Scrum in a geographically distributed team, specifically: China, UK, USA. Included in that post will be my response to the Distributed Scrum Primer here http://www.goodagile.com/distributedscrumprimer/. I agree with about half of it.

Thursday, 24 March 2011

Badge and Gun

Which devices would you gather for an extended period away from home, if given only fifteen minutes warning?

That is the question posed by Blogger, Mobilist, and now Stroke Survivor, the Mighty @Reyes here . My first response was: phone and laptop.

Phone and Laptop

My phone is a Nexus One. It's a pretty old device, although it's now running 2.3.3 Android, which is around 0.3.1 more than when it was new. My employer offered me a later device: the iPhone 4. Quite soon, I discovered that iOS still won't run my preferred secure e-mail client in background. I went back to Android.

My laptop is lenovo X201, running the pointless Windows 7. It's fairly new. I put in for a small laptop after I moved house last year. My previous machine was big, barely able to be called a portable. The fifteen inch screen intruded into the space of neighbouring train passengers. The battery didn't last for my one hour commute. Since trading up to this tiny chap, I'm not only open and running for the whole train journey, but I tend to keep the thing at my side more at home. We all need to update while we watch the TV, right?

As you may have gathered, these devices are not mine in the sense of ownership. They are mine because I use them, by choice. You may say that not having paid for the devices reduces the value of my opinion. It's true that price is not a factor in my selection of laptop and phone, although it is a factor in my employer's selection. Then again, by not having paid, I am not entrapped into playing the iGame. I don't have to continually tell myself that these are great devices in order to drown out the persistent whisper that they cost twice as much as the iQuivalents that do the job almost as well.

Explaining my first response, phone and laptop, seems unnecessary. Nobody reading this needs to be told why, given fifteen minutes, I would grab my phone and my laptop. They might wonder why I didn't reach for a tether or MyFi (?sp), but only if they had not seen the specs of my grab-devices. Both N1 and X201 have WiFi. Each also has its own SIM card for GPRS, 3G, mobile broadband or whatever other packet data service is available from my cellular phone service. I don't need anything else to be connected, but then that's me.

I guess I'm pretty fortunate to have access to such devices. To quote a favourite film of mine and Reyes: Always first class, Same old Roper. Another quote, from countless films and television shows, is also my second response.

Badge and Gun

AMERICAN TV COP (ATC):
    You can't take me off the case! I made the case! I am the case!
    
AMERICAN POLICE CAPTAIN (APC):
    That's just it ATC, you got personal. Now hand them over.

ATC: Hand what over Cap?

APC: C'mon, ATC, we been here before. Badge and gun.

Now, I don't wear (or is it carry?) a badge, and I wouldn't know how to shoot a gun, and I'd like to think I don't have any misplaced machismo issues, so why badge and gun?

Because each of those symbolises something else.

The badge is what identifies the cop, personally and authoritatively. My equivalent, for the purpose of the fifteen minute gadget grab, is my SIM card. I could add my debit card, I think. The other day my contactless card arrived through the post. Add that to the chip & pin that was already on-deck, and my debit card now has enough micro-circuitry to qualify as a mobile gadget.

The gun extends the cop's physical capabilities. My grabbed equivalent is the mobile phone. It doesn't enable me to shoot people, but it does enable me to photograph them, talk to them wherever they are, send them messages by e-mail or SMS, and read their blogs. There's even ammunition, 8 gigabytes of it, and all in the spout.

Since my SIM is generally fitted in my phone, when I grab it, I have both badge and gun. It seems like I don't need to grab my laptop. If I was the American TV Cop in the script, I wouldn't need that either. As has been seen many times, ATC doesn't need his badge and gun to solve the case. He has something much more powerful.

Technology

That's right, technology is what the American TV Cop has, even after losing his badge and gun. It's also what I have, even without my phone and laptop. Technology is not hardware.

The Web 2.0 is technology. Roper's martial arts is also technology, and so is the cop's "nose". These may seem like odd assertions, but they are consistent with the dictionary definition, as supplied by Chambers, the foremost on-line dictionary, here.

The English word technology comes from the Greek word techne, meaning art or skill. The English word technique has the same root.

It's ironic that, these days, technology often refers to stuff you can buy. But does owning a smartphone, or other piece of geek-bling, make you a mobile technologist? No, it doesn't; a chimp with a bible is still illiterate.

Conversely, what happens if you take the iPad, Blackberry and Kindle away from Reyes? Does he become a mere mobile monkey? I say no, although he is kind of hairy. It is skills, not stuff, that makes the man.

Sunday, 23 January 2011

Dissection of a user interface

A little while ago, I was arguing with my interaction designer about our application's Contact editing screen. To argue his side, he invoked a couple of native user interfaces. To counter, I dissected those user interfaces. The dissection was a useful exercise in itself, as well as being a form of banishment of what had been invoked.

I say dissection because I flatter myself that there was a level of precision in my analysis. Also, when the analysis was done, I felt that I had exposed the workings of the user interface and gained understanding by doing so. When you read my analysis, you may say that I simply wandered about, slashing unmethodically. And that I rendered the pretty flesh of the user interface into a gnarled stew of sinew and tendon. Either way, what follows is not a glance at superficial beauty, but a dig into the functional depths.

But first, a preamble covering my interaction designer's side of the argument …

Invocation of the native

Invocation of the native user interface (UI) is an incantation that is often effective. Mobile software developers are probably already familiar with the incantation:

Abracadabra! If iPhone does it, it must be right.

Or you may have heard an alternate form:

Abracadabra! If Android does it, it must be right.

You may even have heard the most powerful abracadabra:

If iPhone and Android both do it, it must be right.

(iPhone is a trademark of Apple Inc. Android is a trademark of Google Inc.)

I'm being facetious, because I didn't agree with my interaction designer. There is actually some sensible analysis behind these mantras.

When designing a user interface, we sometimes need to make it like the user interfaces of other applications that are used in the same context. In other words, if it's running on iPhone, make it like other iPhone applications.

The counter analysis is that we shouldn't make the same mistakes as other applications in the same context. We also need to make our UI best so that we can be proud of it. So if we can do better than, say, the Android native Contacts application, then we should. To establish what the mistakes are, and how we can do better, we need to take the native UI in question and examine it closely, by which I mean dissection.

Bring out the bodies…

Subject of Dissection

Here are a couple of screenshots. These were the subjects of my interaction designer's invocations, and therefore the subject of my dissection.

Native UI A

Native UI B

The screenshots are of the native Contacts applications of two different mobile phones. To avoid potential issues, I've designated them UI A and UI B, rather than use their branded names.

Superficial Analysis

(In anatomy, superficial means near to the skin. The opposite is deep.)

At first glance, the UIs both look fine, and quite similar. Both have pretty, designery graphics. The two screens have quite similar layouts. Both consist of a list of fields with values. In both cases, the list is presented vertically, with each listed item occupying a single row. Both contain a feature that my interaction designer wanted in our software, but which I did not. (We will come to what the feature is, but later. For now, patience.)

Cutting through the surface, however, will reveal that there are differences between the UIs. Hand me my scalpel.

Dissection

My first cut reveals that one UI has a glaring shortcoming

A Glaring Shortcoming

In native UI A, not all of the Work e-mail address is visible. Quite a bit of horizontal space is occupied by the controls, and this has squeezed out the field with the value. If the Work button were narrower, and the minus button absent, then there would be enough horizontal space for the field to display the whole address.

Native UI B has roughly the same controls but doesn't have the same functional shortcoming. The whole of the address “e.gadsby@wooster.com” is visible.

How can this be? Dissect and discover…

On the device with UI A, the field would be edited in place, on this screen. This means that the font has to be large enough that a cursor in the field is visible, and that a user could tap within the field to place the cursor.

On the device with UI B, the field would be edited on a separate screen, opened when the user taps the field. The font on the separate editing screen must be large enough to be tapped, as with UI A. But the font on the screen under dissection need only be large enough to be legible. So UI B uses a shrunken font on this screen, compared to the editing screen. Not only that, but the shrinking is dynamic. There are two e-mail addresses in the UI B screenshot. The longer address is displayed in a smaller font than the shorter address. The result of all this is that more information fits on this screen, and hence function is improved.

(Also in its favour is that te device showing UI B probably has superior screen hardware. With UI B, the hardware manufacturer and software developer happen to be the same company. This is not the case with the device showing UI A. On device A, the software is open source and must be able to run on a range of hardware. The designer of UI B didn't have to worry about whether the UI would work on screens of lower resolution, for example.)

For whatever reason, this is a problem in UI A that does not affect UI B. But, there are problems that affect both UIs. For starters, what's with those minus buttons?

Minus Buttons

Both user interfaces have a column of minus buttons down one side. In UI A, this is on the right. In UI B, this is on the left. Tapping a minus button deletes the adjacent field's value. This was the subject of my argument with my interaction designer. He liked the minus buttons; I didn't.

His case: Without the minus button, in order to delete the value, the user would have to select the field and then tap backspace as many times as there are letters in its content. I agree that this would be tiresome, but…

Why facilitate deletion of a field's value?

Deletion of an individual phone number, or e-mail address, must be an infrequent task. Consuming precious screen space with a control that facilitates a task that is only infrequent seems like bad design to me.

I'll go further. Infrequent actions that are destructive, such as deleting a field, should be … whatever is the opposite of facilitated. It should be difficult to destroy data. This is what we're doing when we add an are-you-sure confirmation dialog: making the interaction more difficult. Facilitating destructive actions only facilitates the user in making mistakes.

The real reason for the minus buttons in UI B may be that there is a need to fill space. Using a smaller font is good because more information is displayed. But it's bad to show a lot of white space on a screen, especially a small expensive one. The user feels cheated. But this solution is not good. Padding out layout with function is the tail wagging the dog. And speaking of layout …

Layout

The visual layout of UI B is not perfect, for me. I find the alignment of the labels to be a little jarring. The field labels (mobile, iPhone, home, work) should be set further to the left. The “add new …” button seems not to be aligned with any other element. The button would look better aligned to the right, next to the chevron. The button would also look better with its left side aligned to the left side of the field values, or to the left side of the field labels.

But the functional layout of the values and buttons in UI B is good. The “add new” button is placed at the end of the list. This is better than having the plus button at the top of the list, as in UI A. It's more intuitive at the bottom of the list, I think. Suppose I am given a phone number for a contact, perhaps by the contact themselves. I read down the list to see if I have the number already. I reach the end of the list without having found the number. Now I know I need to Add New. So the bottom of the list is the right place for the Add New button, not the top.

Both UI layouts seems to have been designed with attention paid to the consumption of vertical space. UI A consumes vertical space with the headings for the type of detail (“Email”, “Phone”) and then saves space by putting the plus button alongside the heading. UI B only consumes vertical space with the “add new …“ button. There are no headings, as such, in UI B, but the button's label includes the type of detail (add new phone, add new email). So the button is doing double-duty, as the Add New control, and as the heading.

So, in both UIs there is one row of vertical space that is consumed by something other than data. Vertical space is scarce on the phone, so it's good to minimise its consumption.

This seems like a good time to mention a non-layout point: Translation. I expect that UI A is easier to translate than UI B. The headings are not sentences but only single words. The words (Email and Phone) probably occur in a number of places in the UI, so the localisation is simply re-used. That benefit seems marginal though.

(Sorry, I said that translation is not a layout issue, which is something of an over-generalisation. Translating between, say, English and French, probably doesn't involve layout issues. But translation between, say, English and Arabic, might well do. A user that reads right-to-left probably expects that the label is to the right of the value.)

Another aspect of layout is visual grouping. Native UI B has a stronger visual grouping of the fields under each heading than UI A. In UI B, visual grouping is achieved with rounded corners, a different background, and a vertical gap. In UI A, there is only a horizontal line. Stronger visual grouping may be necessary in UI B because the “heading” is not at the top of the list, where the user's eye expects a heading to be.

I prefer the visual grouping of UI B, but I don't think it could be used in UI A. UI A has an extra button on every row. These buttons, like all buttons, need dead space around them so that the user can tap with confidence. If a button is surrounded by other buttons, or active space, then the user has to be careful, and may become anxious. To paraphrase Steve Krug: Don't make me care. These buttons are doing double-duty too…

Click-able Type Labels

In UI A, it is obvious how I will change the type label on a value, by which I mean change “Home” to “Work” for example. I see the type label is a button, so I know that I'll tap it to change it's value. In UI B it's not obvious, although the method used is common throughout the device: fields and labels are edited on a separate screen.

Conclusion of Dissection

The big drawback of UI B is the lack of in-place editing. I'm told that even its fans think this. But, having done the above dissection, I can see the validity of the approach. Editing is relatively complex. Having editing in-place, on the same screen, adds to the complexity of the screen. Moving editing to a separate screen results in two simpler screens. Also, the separate screen approach is tied in with a number of other design decisions. Changing to in-place editing would mean changing those decisions too.

So, what we have here is a compromise. There's nothing wrong with compromise, although many designers think of it as a dirty word.

Here's a statement that would annoy such designers: Beauty is optional, function is mandatory. We've all seen uncompromising design and loved it. It just wasn't on a product that's successful in the market.

Conclusion about Dissection

Dissection is interesting, and reveals how everything is connected to everything else. If you don't believe me, ask an anatomist.

The mobile user interface is smaller than the desktop UI but, ironically, stands more dissection. You'd think that cutting up smaller things would be more difficult, and it is. But it's also more important.

So should everything be dissected? Should dissection become part of the everyday mobile design process?

Simply: No. Dissection should not be applied to incomplete software. Let the thing live before cutting it up, I say. After all, when does something that has been dissected get up afterwards? Apart from anything else, it's discouraging for designers. Designers like pretty things, and the UI stripped bare by her programmers is anything but pretty.

As to the presence of minus buttons in the UI, I can tell you that I didn't win the argument. I can also tell you that the interaction designer was made redundant, and I miss him.

Thank you for reading and if you're looking to hire an interaction designer, please comment on this post.

Copyright © Jim Hawkins, 2010

Saturday, 22 January 2011