Showing posts with label Agile software development. Show all posts
Showing posts with label Agile software development. Show all posts

Wednesday, 9 May 2012

Developers are not carpenters

At least not figurally speaking :-)

I spoke to a colleague the other day. He had just had a meeting with a (potentially new) customer. This customer had had some bad experiences from previous suppliers. The customer then said: “If I want to build a house. Don’t you know how much it will cost me and how long it will take to build it?” And my colleague tried to answer: “But what kind of house?” “You know, a standard house”. My colleague tried his best “But that still depends, where do you want to place e.g. the kitchen and how do you want it to look like and design it etc. etc.” But the reply still was kind of “As a carpenter, you should know”.

But the metaphor is far from complete. Creating software is not building a house! Software has a soul, a heart, a life. It needs to live, grow up, mature, be fed, be nursed. And who will do that? Both the customer and the developers! And I think that it has been their main problem all the time; as a customer, the more involved in the development you are the better development it will be.

So next time. Reply with “How much is a pet? And how long will it take to breed it?” And also, you just don’t buy a pet and think it will take care of it self and don’t need any attention (the whole point of having a pet at all). The metaphor is just as good (or bad).

 

…”What kind of pet?” “A standard pet?”

Thursday, 15 December 2011

Rules are made to be broken

Through my years as a software developer I have built (or seen other developers built) systems that are very tightly coupled around rules. Very often the rules are explicit and are not my own, but from the business aka “business rules”.

Since it is a rule I start to design the system around the fact that the rule is always 100% true.

But what I do is locking my self in. Why?

Because. A couple of years (or months or weeks) later the rule is no longer 100% true. Very often the same person who told me this rule could never ever be broken is the one telling me to brake it. Since the system is designed around the fact that it can’t be broken, it’s usually pretty (or very) cumbersome to change it.

It can sound something like this.

– Why can’t I do “that” on “this page”?
- Well, because it’s built that way. It is not permitted to do that.
- But I must be able to do that!
- But, you told me at (some date) that it was a rule?
- Yes! But not when I want to do “that”!
- . . .

But it is understandable. We want to be certain about some things when we initially work out the demands for the system. But the users every-day work life is all made up by exceptions! It’s all made up by ways to brake the rules. And if you think of it, it would be a pretty boring job if it wasn’t so. You could easily be replaced by a machine.

And when you think about the rules (laws, morals and ethics etc.) that our society is made up out of. There is always an exception for them. If I where to build a system around some society I would definitely build a strong rule around not allowing anybody to kill anyone else. Most countries have a law for that! But. Depending on which country you live in, it is – sometimes – ok to kill someone. If you find an intruder with a knife in his hand when you come home and he attacks you with the knife, you are (by Swedish laws at least) allowed to kill the bastard (to defend you own life). In some countries *cough* or *cough* states *cough* (not mentioning any) the government holds the right to execute civilians. My system wouldn’t be built around that exception.

What am I trying to say?

Something like; always prepare your system to be able to brake rules. It will happen eventually. It’s hard. I know. It’s much easier to write “if (true)” than “if (true well… but…)”.

Or at least always prepare yourself for it, if you don’t want to prepare the code. And allow it to happen. It’s called being agile :-)

Tuesday, 31 May 2011

Story points = time - but time is relative

I'm reading the book Agile Estimating and Planning by Mike Cohn. I "disagreed" with some things he wrote in the book so I wrote him a mail asking him mainly about the story points. My opinion was that you should never compare story points with work-load. He gave me a good answer and also a link to his blog (I'm not going into details of the answer) http://blog.mountaingoatsoftware.com/its-effort-not-complexity.

Now I understand I had got it all wrong. It's absolutely valid to compare it with work load. It's just that my time is different than your time. That's why you shouldn't use time when e.g. playing planning poker - because five points for me may be ten hours of work, but for someone else it's five hours or maybe twenty. But you should never tell the others what a "five" is for you. Just agree on that ten points are twice as much work and two points are half (not quite). Thus it's a good method to try to find a basic story that everyone can agree on is in the middle range and then compare all other stories to that one.

Then - if the team is pretty much the same and the project is similar - you could actually say that 100 story points = 400 hours of work (or something like that).