Friday, January 25, 2008

Difference between iterative and incremental development

Do you sometimes also have problem to make clear distinction between iterative and incremental development? What if you should explain difference to customer or friend?

Hopefully these two pictures taken from Don’t know what I want, but I know how to get it will help you understand it.

When you work incrementally you are adding piece by piece but expect that each piece if fully finished. One picture is worth of thousands words :)
When you work iteratively you create rough product or product piece in one iteration, then review it and improve it in next iteration and so on until its finished. One picture is worth of thousands words :)
So is Scrum incremental or iterative?

It is iterative by the definition as we are running sprints. We are improving application iteration after iteration.

But I believe it is also incremental because user stories finished in sprint should be of shippable quality and therefore we should not return to them in next iterations.

So Scrum is iterative incremental process.

Is this your opinion too?

Wednesday, January 23, 2008

User Story - Define Roles

My short summary of the book User Stories Applied by Mike Cohn.

In the previous post I summarized basic attributes of good user stories (INVEST attributes). In this post I will summarize while user roles are important.

In the most of cases in each software systems there are different roles that are interacting with it. Before you start writing your user stories you should think about roles that will interact with your system.

This way you will avoid situation when all your user stories start with "As an user...."
This way you will have better understanding what capabilities you system should have.
Having roles it may very easy happen that you will discover user stories that you would probably forget in the first moment.

How do you come to roles:
  • Make brainstorm about initial set of roles
  • organize initial set of roles
  • consolidate roles
  • refine roles
Of course, brainstorming should not take more than hour. After this hour you should have better ideas of user roles supported by your system.
Having roles you are able to write better user stories because very often role gives additional clarity to the user story.

There are some additional techniques for defining roles: personas and extreme characters.
Personas and extreme characters can give another view into you system but you should use them only if your project really requires that.

Monday, January 21, 2008

User Story should I N V E S T

My short summary of the book User Stories Applied by Mike Cohn.

In the previous post we saw what is user story. Now I will summarize what are the main attributes of good user story.

The main attributes of good user story are:
  • Independent
  • Negotiable
  • Valuable
  • Estimatable
  • Small
  • Testable
User stories should be independent as much as possible. If they are not independent it can be a problem to estimate and prioritize them.

User stories should not be contract between developers and customer. It must be possible to achieve agreement what is part of the user story.

User story must present value to user or customer.

It must be possible to estimate user story. Usually it is not possible to estimate user story if it is too big or is full of domain specific terms.

User story should not be too big nor it should be too small. User story should be just right in the size. How to achieve right size of user story? Well it depends on team an experience.

It must be possible to test user story. If it is not possible to test user story then you are not able to tell when you have finished with user story implementation.

User Story

My short summary of the book User Stories Applied by Mike Cohn

User story describes functionality that will be valuable to user or customer of a software.

User story consists of three parts:
  • Description
  • Conversation
  • Tests
As a general rule, user story description should be written without using technical or domain specific language. It must be understandable for both, developers and customer.

Conversation is short remainder about details of user story.

Tests are used to determinate if user story story is implemented and if user story is implemented correctly.

For me very nice example of user story in the book (although it is constraint) is:
A repeat customer must be able to find one book and complete an order in less than 90 seconds.

This user story has all important features of user story:
  • It is easy understandable for developer and customer
  • It does not use any technical or domain specific language
  • It is independent
  • It is easy testable
You can compare this user story to some more technical requirements like: search in database should be performed in no more than 2 secs. User must be able to navigate easy through pages. From these technical requirements you are not able to decide what is real intention of requirements.

For me this is already enough to be ready to give a user stories a chance :)

grails excellent web framework

For long time I had kind of resistance to have a look at some "new" and exciting scripting languages like groovy or ruby. For some unknown reasons, few days ago I decided to take a very short look at a groovy. I read documentation, examples and I liked it. But that would not be enough to invest some time to learn it. But then I noticed link to grails, web framework so far unknown for me. As for past months I am deeply within web development I decided to read a little bit about it.

I have downloaded grails, opened tutorial and had hello world example in 60 secs. I couldn't believe it. With JSF combined with Facelets, RichFaces, MyFaces (what is advisable as technology stack) for hello world you need hours of configuration. Sometimes even when you use RAD tools like Red Hat Developer Studio.

This increased my courage and I continued reading some advance tutorials. Tutorial is nice and it seemed to easy to be true. So I gave it a try. I downloaded the book from infoQ and followed instructions from the book (the whole book). I didn't use tutorial because I wanted to try much wider approach than one covered in tutorial. Everything worked smoothly. For me this is excellent discovery. After using JSF and lot of surrounding technologies, I got framework with which it is really easy to create web applications. So far it seems that with grails web application development is as it should be: easy and fun.

I am sure I will continue to investigate grails and as I have some decision possibilities I hope that maybe we will do some commercial project with it.

My advice:
If you didn't try grails yet, try it right now, you will be pleasantly surprised.

Saturday, January 19, 2008

Book: User Stories Applied

I am just reading the book User Stories Applied written by Mike Cohn. Book is excellent and although I have read lot of articles and blogs about user stories on the Internet I found so many new and important information for me. Everybody interested in agile software development should read this book too. As I like to have the most important statements from the book written somewhere I will place them on this blog.
This will be something like book review done chapter by chapter. But do not expect that mentioned summary of the book will be enough. If you will like the summary then for sure you have to read the book.

The list of posts I wrote about this book is:


Friday, January 18, 2008

Start estimating in ideal person days

I am aware that this title is in contradiction with my previous post. But in previous post I was more idealistic than I should be. The main problem when estimating complexity of user story with some abstract value is that you are able to give first estimation when roughly project will be finished only after first sprint.
When I woke up and came back to reality :) it became clear that in the most of the cases this is not acceptable. Customer very often wants to know at least some rough estimation about release plan, when project will be finished. Shortly, she wants some time based estimation.

From that point of view, you should estimate first set of user stories with story points that are equal to ideal person day. As soon as you have some first set of estimations you should stop thinking in ideal person days and use them as story points. It means, when you are estimating new user story, use previous estimations for complexity comparison. This way your estimations will be based on complexity factor but later on (after few sprints) your velocity will tell where are you standing according to plan.