Wednesday, 20 April 2016

The foundations of the Agile Manifesto

There have been many occasions where the Agile Manifesto has been pulled out in a presentation. Makes sense, it has been around for a while and started a movement which is still growing today.

We usually get caught up with the Agile Values and Principles but have you ever thought about the very first line?

"We are uncovering better ways of developing
software by doing it and helping others do it."

Recently, I had cause to realise the how this is the foundation of the Agile Manifesto by making and acknowledging a mistake.

I had been recording leadtimes for a while. The information was useful but there was something troubling - 13 point stories just didn't fit. No matter how we prepped or planned they always took longer than our sprint window, sometimes MUCH longer.

So I wielded my power as an SM and banned them. Poof! Gone! Good riddance.

Thing is, I had just moved the problem. Over time, I noticed the same issues we had observed with 13 point stories start to affect 8 point stories. I don't think this was conscious but I do think it was due my 'ban'.

It struck me that we had broken one of the foundations that are baked into the Agile Manifesto and everything it contains - by no longer doing it, we could not learn from our mistakes or successes.

It seems kind of obvious but I had never thought about it before. 

The manifesto was born out of 'doing' and 'sharing' - the people who some up with it did not hypothesise! You can only learn from doing - by banning my 13 point stories, I had stopped all feedback from experience and therefore any learning too. We accelerate our collective learning through sharing our experiences, both good and bad.

So I came clean with my team, said I goofed and the team took in not only 13 point stories but much larger ones too. Each time we tackled one, we learnt a little bit more and the next one was just a little bit smoother.

(But they still don't fit!)

Monday, 21 March 2016

What's in your tool kit?

Yeah, yeah so you have a million different Post-Its and Sharpies. Time to experiment.

Recently, I have been spending an obscene amount of money on other bits and bobs to help me come up with some better (or longer lasting) visualisations. There's also some stuff that I ended up using in retro's a lot. Here's some stuff I have tried:

Magnetic Tape
Most boards are magnetic these days (mine turned out not to be but I have stopped crying now) so this is an alternative to blue tack for avatars or other icons. Pretty pricey but it does hold well and is easy to move.

Sticky Tabs
I have begun to hate Blue Tac and these are promising. They are sticky tabs that stick and re-stick. The hold on them is often a little too good sometimes but they do what they say on the tin. Early days, wondering what happens when they get 'fuzzy'

Egg Timers
I love these in retros. They are very unconfrontational and allow you to keep everything moving along - if you need to work to a timebox, these are awesome. You can also use them in meetings to keep people from rambling on. 3mins is a nice time, will be ordering more - they come in a range of times.

Phrase and Date Stamp
I found this rubber stamp that had phrases on it too - nice for dates on story cards. Now people will not have to suffer my handwriting.

Stapler
I have found that stickies often don't make it across the board - one of my teams started stapling them to the main story once they accepted it to cut down on picking them off the carpet. Can't live without one now....

Large Ruler
Tip: add a little some Blue Tac on each end to make it easier to draw a dead straight line on any surface

Chalk Pens
These turned up one day and are brilliant for writing on glass. They come in a range of funky colours and are more difficult to rub off than whiteboard pens - good for lining out task boards. They come off easily with a bit of water.

Lining Tape
Great for lining out boards when you don't want them to move. Not sure when then really 'stick' or what will be left behind if you have to remove.

Sucker Cups
If you cannot use tape or afford Chalk Pens then this could be an option. Sucker cups with string work OK but do have to be pushed in everyday or they have a tendency to fall off. Good on glass not sure about white boards.

Magic Whiteboard
Personally, I don't like this stuff but it does have it's place in the emergency corner. I am usually lucky enough to have a whiteboard but this fills the gap when that luck has run out.

What have you got in your toolkit - have I missed anything? Let me know :)

Wednesday, 16 March 2016

Debts and credits in your backlog

Once a month I feel like a rich man. On the day I get paid, my bank balance shows the fruits of my efforts in all their glory. This lasts a day or 2 until some bugger comes and swipes the lot!

In reality, I am actually poor. Like most people I have a huge debt in the mortgage on the house that keeps me warm and dry. This is a well-managed debt, lasting years that I nibble away at each month. 

If I were to treat my finances like a business on an extensive balance sheet then I would make my true financial situation visible. It would make me sad obviously, but if I want to know my true position then this is what I should do.

A POs responsibility does not lie solely in serving the customer. They must also align the customer’s requirements with their company’s vision. These are 2 perspectives but the developers give you a 3rd which is equally important – they can tell you about all the things you CANNOT see and yet still affect your product.

Many POs I have worked with insist that the backlog should not have any stories that describe technical debt since they have no value. I would ask you to consider that the backlog is better seen as a balance sheet – it forecasts the future worth of your product.

So if we treat the backlog as a balance sheet, we can start to attribute the losses of not addressing technical debt against the gains of new features. It is actually the combination of these that describe the true position of your product and its ability to continue making you money. 

Our technical debts are ever increasing – this is either an active process which we decide on or a passive process through neglect.  Just like a mortgage, there is maximum we can afford based on our resources – we cannot keep increasing our mortgage forever.

If we don’t carefully managing our debt we might have to take out a more expensive loan to cover the costs over a shorter term. At worst, this could be one of those payday loans because we exhausted our credit with all other lenders who rely on us being sensible in order to do business with us.

Technical debt provides balance to your backlog. Viewing your debt alongside your credit allows you to make more informed decisions about what to invest in and when.

Thursday, 25 February 2016

What the Minions movie taught me about job hunting

The Minions sole purpose is to follow the most evil boss they can find. They are completely fulfilled by following their master. They are easily distracted from their current master if a new, more evil master comes along.

They don't get paid. There is no package and employment conditions are dubious to say the least.

What we could all learn from the Minions is that their choice of employer is solely based on leadership. The more bad ass the boss, the more the Minions want to work for them.

So when the Minions meet up with Gru, they know they have found their 'big boss'. They follow him because he is the baddest, most evil villain they have ever seen and that is what they need to believe in his leadership.

When was the last time you did this when you were looking for a job?

We all read a spec, find out where it is, what the package is.... how many times do we look into the guy or girl at the top? Not just finding out his or her name but understanding what they are about - 'why' they do what they do?

This was a question I asked myself not only because I recently have made the decision to move to another company but also because I was reading "Start with Why" by Simon Sinek. It made me question how I had been looking for roles which has been governed by the dating style dance of supply and demand rather than a desire to work for a specific company based on leadership.

The recruitment industry fulfills a difficult dance - an employer needs to fill a role and the recruiters essentially play a numbers game trying to find a fit for the person, skills, place and time to fill it. Someone might be a perfect 'fit' but unless they are ready to move on, it simply won't happen.

But how many people search for their role based solely on the ethics or purpose of a company? I'm talking about companies that have a clear intention and vision - those who are led by people who inspire us? People who have inspired an entire workforce to follow them.

On a practical note, how would we find these people or organisations? The large companies are well known - they cannot be the only ones! How do we find the next generation of Virgin or Apple? How do we know they are looking for people like you? At the moment it feels more like luck than a plan - like the Minions following a new master until something better comes along.

This is slowly changing to a more pull style recruitment drive where social media plays a pivotal role. My recently journey onto the job market was totally different to anything previously - I reached a dozen or so organisations through introduction alone. I managed my own interviews and offers and yes, it was hard work.

In the meantime, I want to pose a question:

How many of us really see an interview as a two-way thing?

Shouldn't we be interviewing them as much as they are interviewing us? As much as they are trying to find out how we will make their 'why' real, shouldn't we be trying to find out about their 'why'?

Whilst we might not be able to target our recruitment 'aim', we can certainly make sure we know what an awesome company looks like when we end up in an interview with them. That is only obvious when you find out 'why' they do what they do and you believe it too.

Wednesday, 10 February 2016

How I would interview developers now

I have done my fair share of interviews. I recently realised I was doing it all wrong.

Now, I would only talk about testing. It's a much better gauge of a developer than anything else.

If the developer is describing manual testing, I'm thinking Junior. At best.

Everyone has heard of unit testing, so I'm interested in the level they have taken this to. Have they only done unit testing on green field projects? Did they add functionality to a project that already had good coverage? Did they have to bring up the coverage of something that already existed?

If they had to add tests to something that existed, how did they deal with architectures that didn't have testing in mind? Did they use any patterns to help with the transition? How did they negotiate the risk of refactoring code that had no tests? Did they form a strategy for ensuring the functionality was the same before and after - what was it? Did it work? What did they learn?

Test driven development usually comes up too. Describe it to me - I'm interested. How did you get started with it? Do you use it for everything? TDD is hard and you can loose the discipline quickly. I have come across only a few developers who really did TDD - the rest write unit tests after their implementation, which is not the same. What's the difference? Is it OK to do it this way - sell it to me.

So you're writing tests. I'm now thinking you are developer with a few years experience - you've seen things, you have scars.

Again, I'm interested. What does a good test look like? How would you name a test? This is particular PITA since we all know naming things is haaaard. I want to know the thought process though. How have you managed hundreds of tests? How about thousands? How did you structure these, how did you evolve this over time and what did you learn? Did you group tests together - what has worked for you in the past?

Let's talk smells.

What does a really long test tell you about the code you are testing? If you have initialise half the app to do the test what's going through your head? If lots of your tests are using the same dummy data, what might you expect to happen in the future? What would you think if you saw multiple asserts - is that OK? If not, can you think of any examples where it might be OK?

Tools can also be a topic of conversation. What frameworks have you used? Can you do unit testing without them? How would you go about that? What's the difference between a fake, a mock and a stub? How would you use each?

Getting more interested. You've probably refactored some tests - maybe had to teach people. Maybe had to be the sheriff at times. All good - I thinking more senior now. You've probably had more responsibility or accepted more for 'the cause'.

We're in integration land now. How have you set the state of a test - what strategies did you use and why? How do you deal with large databases during tests? How did you deal with specific customer configurations? How can you structure tests around failures - how does this affect automated runs? What happens when you have too much to run in a single night?

Depending on your flavour we might be talking API or UI. Have you had to apply tests to a legacy Windows application? What challenges did you face? Have you tested Web applications? Is there anything you had to differently to allow the UI to be automated? What mistakes did you make or uncover? How about mobile applications? How did you deal with apps that were for multiple OS's and ensure conformity?

Integration testing is often tool heavy. What did you use? What's your favourite? What features really helped you? Did you write anything to enhance your toolset? What did it do?

If we get here, I really thinking lead. I'm liking the embedded approach to your thinking - QA is a part of your thought process and experience.

Testing is a part of team life. Agile teams own quality. They nail it in the sprint - it is a part of the DoD, one guy in the team cannot do all of it. How far on this journey are they? How do they plan testing in their team? How do they estimate it?

Think about what I'm REALLY asking. If you are not testing anything yourself, I'm wondering about your code - to be honest, I'm wondering if I could understand it and maintain it. If we are talking unit tests, you have probably had to confront this and do something about it. We all have had that "who wrote this rubbish?!" moment only to discover it was us.

Talking about unit tests means, I'm pretty sure you are familiar with Dependency Injection, if you can describe smells you probably also get Single Responsibility Principle too. You might have had struggles with the Open/Closed Principle and realised the pitfalls of inheritance and how this affects what we are testing. So we are also touching on OO principles like encapsulation and composition which influence how we structure code so it can be tested. I don't need to ask you any basic questions because if we got here, I'm pretty sure you know that!

I'm also getting direct feedback on how you regard quality. This is not the QA's job - it is everybody's job. It is core to delivering product. Quality is embedded into each line - code is crafted to be tested, products are designed to tested, developers need to think in terms of delivery - the output of which is also tested.

Anyone can rattle off definitions but describing how you apply these to deliver software is easier to gauge if we only talk tests. It's also really hard to fake.

Friday, 5 February 2016

Why I hate 'Best Practice'

I hear the words 'best practice' almost every day. My eyes roll over and I look vexed. I don't mean to, I just hate this phrase.

I live in a world where we make things transparent so we can inspect and adapt.

How does this work with 'best practice'?

By adopting 'best practice' we are making the assumption that this is the ideal, that there is nothing left to learn.

We might also put this all in a locked box so we can't change it. It is 'best practice' after all - you will probably mess it up if you play with it.

So when one of my team recently said he could not change the QA 'best practice', I suggested that we absolutely needed to try.

Together we proposed we do something different - based on observation and experience - that might make the process better. We decided to run an experiment to test our own theory that the 'best practice' was flawed and can be improved.

We proposed how we could evolve the process and measure it's impact so we can decide whether we should keep the change.

So what is 'best practice' in a process that designed to evolve?

To me, it is the last thing that worked.

This might not be the last thing you tried since you always have scope for experimentation and learning.

In my world, nothing can be 'best practice' since we can always improve it.

Friday, 29 January 2016

A tale of teamwork

Our daughter was born very suddenly and very, very small. Being only 5 grams above the threshold for special care, she was a tiny little thing. Being a bit of a drama queen, she decided to sit on the exit so we had to go in a get her. This meant both mum and baby had a week in hospital while mum healed and we waited for baby to get big enough to be discharged.

My wife was determined to breast feed but within hours we all realised there was a problem. Our daughter had a tongue tie which made it very hard for her to control her tongue and suckle. Basically the little flap of skin under the tongue was attached to the front of the tongue. To this day she cannot really spit out her tongue (although she gives it a bloody good go!)

The week in hospital meant mum and baby were surrounded by professionals. They had seen it all and gave every piece of advice they could muster to help mum and baby breast feed. There was marginal success but we still had to top up with bottle feeding. Being so small the effort often made baby tired, so much so that we used call her 'two tugs' since she should often take a tiny drink and then go back to sleep!

The midwives discharged mum and baby not because baby had put on the required weight but because they saw there was nothing else they could do. Mum knew what had to be done and was still determined to do it and baby was feeding but just needed to do it a bit more. We were told mum and baby needed to feed every 4 hours. That's EVERY 4 hours - which we did for 8 weeks. I still chuckle when I say "I'm tired" out loud.

At home, every friend, family member and even passer by offered their advice and expertise on the feeding problem without any improvement being realised. Their input was welcomed but they could not fix the problem for us.

It was only when mum and baby were just left alone did something amazing happen. Through trial and error they came to some sort of arrangement. Baby got bigger quickly and everyone was happy, not least because we were getting some sort of sleep.

The arrangement was possibly the most quirky and odd thing you would ever witness. Mum realised that baby was a bit finicky about sides meaning she had to slide her from one breast to the next, holding her like a rugby ball, curled around her side.

Keeping baby awake turned out to be easy - mum simply blew on her face which was enough to get baby back to the task at hand. She did look a little startled the first couple of times!

The tongue thing was resolved with a combination of timing and what can be only be described as hurling the child at the target. It turned out to be the only way baby could get a good grip that she needed to suckle. Baby is hungry, she opens mouth and mum flings her at the food source - it looked very funny!

But it worked.

All teams form around a common goal. Sometimes they just need to left to figure some stuff out for themselves. We equip them with everything they need to be successful - knowledge, encouragement and trust. Teams need to find their own path - it's often not the way we envisaged or advised. They know where we are if they need our advice.

Great teams figure out their own way to get the job done. Sometimes we are lucky enough to be present for their success and the small part we had to play in their journey.

My favourite team