Little bit of everything about software development from agile perspective

Latest

Finding code smells through unit test reviews

 

One of the greatest advantages that one gains from writing good unit tests is that they help to improve code quality. I actually think that unit tests give even more value through improving code quality than what they provide for testing itself. I have seen quite a fair share of code during my career and I’ve never seen a complex system with good structural quality without unit tests on place. Sure, there are good bits every now and there, but usually always something bit messy as well.

The connection between well structured code and unit tests is so strong that actually unit tests can act as a good source in finding structural issues in your production code. As the unit tests by nature are often more easy to understand quickly than understanding the whole system through production code, unit test reviews can be excellent spot to start finding some of the production code issues.

Let me share few of those.

 

Testing private methods

One code smell that is very easy to spot is testing of the private methods. There are different ways of doing this, but for example in C# you can spot it by looking for usage of PrivateObjects in your test methods.

Private method testing can indicate issue from both perspectives of tests themselves but also in structure of production code.

From the perspective of the test, testing private methods can lead to fragile test. While you are tightly binding your test into implementation detail (something that is encapsulated by the class), you are making a test that gets easily broken through minor changes on detail level of the class even though the logic would not change at all. This can easily add extra work and lead into resistance towards refactoring.

What is more important from the perspective of production code, it is often a code smell. Very usual case is that when you start investigating why there was need for testing of private method you will find out that your class is breaking single responsibility principle. Often there is logic that is chained through private methods and you end up finding logic that would be better to be extracted onto class of its own, which would obey single responsibility and at the same time be testable through public methods.

Other possible thing is that you accessing private property to either override some private value or to read results of test from private property. In first case this is often indication that there are issues with dependency injection and the latter often indicates either issue with single responsibility or encapsulation of the class.

 

Long test execution paths

Have you ever been debugging through a test code where single unit test goes through about 500 lines of production code only to really test three lines of logic from one private method at the end of the chain? Well, I have.

When reviewing unit tests, I usually always debug them through to see what possible edge conditions we are missing from the tests and how the test really flows through. Sometimes such a debugging session ends up as a marathon run through depths of the production code. And it stinks.

In these cases, the smell most often indicates the issues with following single responsibility principle. and/or issues with dependency injection. Very often it is both.

One way to start thinking about such an issue is to look at the part of the code (those three lines out of 500) that really are the ones that should be under the test and thinking of what preconditions and dependencies only that part needs for being tested. Does it seem like something that is actually doing responsibility of its own and should be part of class of its own? How could you separate it into unit where to you can nicely inject those dependencies?

Often that is just a tip of the iceberg for the needs of refactoring. But at least it is a start where you can start working on restructuring your code bit by bit.

This kind of changes usually also makes your test code quite a bit simpler than they used to be.

 

Complex test initialization

When bumping into test where there is lots of initialization (in other words, if you are following AAA with your unit tests, the arrange part is complex or bloated) it always rings a bell in my head and I ask from myself:  “If test code is so complex and hard to setup, what might the code itself look like?”. The usual answer is “complex, messy and structurally bad”.

What does that indicate most often? Once again, most likely our class under test has multiple responsibilities. This often comes as combination with lack of dependency injection. Due to that we will possibly setup multiple different classes with valid test data to get us run all the way to simple part of logic that we would like to test.

 

Lack of exception handling

It is not uncommon to run into set of tests that are only testing positive cases, going just through the happy flows when nothing bad happens. In the case where I don’t find a single test that would be testing if exceptions are thrown as they should, I feel a bit of nasty smell in my nostrils coming from the production code. In the best case scenario, only the test set is bad and is only touching the surface of what is should be doing, but too often it is also case there is something fishy in production code.

When the exception tests are missing, it is often indicator that exception handling is also either missing or not well designed. It is actually awfully common to see code where the exception handling is something that is “glued” on top of everything and hacked together to just keep things not crashing in few special cases. And that is bad. If that is the case, it is a good time to start thinking about whole exception handling strategy and get your basics back on the shape.

 

Usage of service locator / IOC container in tests

Whenever I see tests setting up things in some kind of IOC container or something other that looks like a service locator, I’ll end up swearing out loud (and I’m not a guy who swears a lot). I have yet found only one case when it has not been indicator that the production code is using service locator anti-pattern and ruining the structure of the code. It is, in the end, one of the worst things that you can do for maintainability of your code.

This is very clear and specific smell that is very easy to notice either by debugging through the code through test or refactoring those setups away from the test code.

 

So what does this all really mean?

So, we found few concrete smells that I told to point out some structural issues in the code. You might be wondering if those really are that bad as you was able to test your code and “it works as it was defined to do”. You are of course allowed think however you like to, and I must admit that there was time that I did not think those as a big issues. Those might not be big issues if you are doing very simple and non-critical system that is to be thrown away and not maintained. But if you have even small hunch that your system might end up being either complex, being critical for business or that somebody might be maintaining it after it is “finished”, then those are really big things.

I will not go through in-detail as why those things are such a big issue, as there are plenty of good articles in the depths of interwebs that dive into details. So if any of those topics is strange for you, just use our common friend Google search to enlighten you.

To summarize things, reviewing the unit tests is an excellent way to find issues in the production code and often is much better stepping stone into improvement than just start digging through the lines of production code directly.

I introduced some smells that can be found through such a review, but there are plenty of others as well. So, if you have a good smell to report and help others to give attention to those, feel free to comment and share your experiences!

Have multiple software products to develop and maintain? Ditch sprints and jump into Kanban wagon!

Introduction

There are lot of different kind of agile methods and frameworks of which have lots in common but also really meaningful differences. The Scrum is of course known by most who have heard the word Agile, and is so widely used that I often get a feeling that lots of people are using word Agile when just talking about the Scrum. It is clear that there is something excellent in Scrum for gaining such popularity, but it is also very important to take a note that Scrum might not be the right way of Agile to pick for all situations. Actually, my experiences with some software teams indicates that in certain environments the some of the major parts of Scrum practices can lead to decrease of team performance and happiness.

In my master’s thesis I was studying ways to improve performance, produced quality and happiness of two software development teams who were working on development of software products. This was done on mainly focusing Agile and Lean practices. With both of the teams there was a two year evolution of their practices in which time period both of the teams were initially Scrumming, but ended up to give up the sprints and use continuous flow that was more in line with Kanban-method.

How did that happen and what could have been the reasons why Scrum had some negative effects for the teams? Let’s take a look at the story with one of the teams on high level.

 

Story of the team

One of the teams had earlier been working mostly with ad-hoc practices that had formed on the top of the waterfall model projects. Their daily work was very lightweight in perspective of any processes or formal practices.

We introduced the Scrum to them in beginning of development project of a new product. The practices put into place were initially greeted with positive excitement and common agreement that this could provide something that the team had been missing so far.

Even though the changes were welcomed, it soon became clear that adjusting to sprint based working was not easy in the given environment.

The fact that the team had multiple products to support, caused it to constantly fail its sprints. This was caused mostly due to the fact that in addition to the development project, the team had maintenance responsibilities for several other products. In addition, some of the team members had organization wide responsibilities which could take some of their time in very short notice. All this caused the team to have very little predictability of the real effort they could be able to commit to the sprints.

The team also felt their commitment to sprints be very artificial sort and conflict with their commitment towards their whole product portfolio while also added needless overhead in form of regular planning meetings. In addition, the team did feel that too often the commitment to scope in such a short iteration would conflict with commitment to quality. This all caused negative stress for the team, clearly decreasing the happiness. The team did try sprint based working for three months, before it was very clear that in the given environment and for given team the sprint based work would have more disadvantages than advantages.

After three months of failures in sprinting, the flow based model was taken into use. The model was a slightly simplified version of what is defined in Kanban method. The model used takes use of visualizing the workflow through a virtual task board and having work in progress limits, however, for example following lead times or different service classes were not introduced for the team in the beginning. The team was quick to adapt the new way of working, and was very satisfied with it.

The team was considering that switching to use Kanban flow had positive impact in all three: performance, produced quality and happiness.

One of the best indicators of the team’s increased happiness was that they also started to tell other teams in the organization of this new way of working that really worked well for them. This triggered some other teams in the organization to also start taking flow based approach into use.

The team has now been working with flow based approach for over two years and is clearly happy with it.

One important thing to take a note though is that many of the practices that were introduced with Scrum were still used in the team, but they evolved more to be part as a flow. Daily meetings were still used as were user stories. Planning sessions were more based on individual stories while moving through the flow and so on.

 

Why did Scrum sprints fail where Kanban succeeded?

It was very clear with this team and this given environment that using the Scrum, and especially working in sprints, was dragging team down while Kanban style flow made the team blossom.  Let’s evaluate through few of the main reasons.

Team had multiple products to support

The fact that team had multiple products to support and maintain caused a situation where team just could not focus on the product they were now developing and to the contents of single sprint. Supporting other products was often causing for example the need for providing 3rd line support that would come unexpectedly during the sprint but had very high priority. As there was no clear predictability for the amount of such work in the beginning of the sprints, it lead into situations where team could easily fail their sprint goals due to such thing which was bad for morale of the team as they were very committed towards their goals.

Team members had responsibilities also outside of the Scrum team

The fact that some of the team members also had responsibilities outside the team, being respected specialists on some topic in the organization, brought a need that if an urgent need came up during the sprint where their special skills were needed then the effort they could be putting on the sprint was decreased. This once again lead into situation where team had hard time to reach their sprint goals.

Product owner was available on daily basis

In the environment where team worked, product owner had a very important role in defining the product that was developed. As the team was not working on customized solution or tailored project for individual customer, the product owner was acting putting together the needs and views of multiple customers. Therefore it was product owner’s view that was most important. In addition, the end users could not be involved in every sprint review especially early in the project.

It was a very good thing for team that product owner was very dedicated and could participate actively on daily basis, but on the other hand this lead to situation where sprint demos started to lose their importance as product owner was already well aware of what had been achieved.

To put things together

It was clear that due to the environmental reasons the team could not commit to sprints in the level which Scrum requires teams to do. Due to that, trying to work in Scrum sprints had clearly negative impact to team in many aspects.

It cannot be claimed that Scrum would not work, but it is very important to take a note that Scrum is not ideal solution for all kinds of software development environments. In an environment where we are working with products and team is responsible with more than one product, we will be running in this kind of situations that will make Scrum less useful and even might have negative impact.

It is also important to take a note that from business point of view changing the environment to support Scrum better is not usually valid option and not even doable. There are realities that business models set up for us. In this kind of environment the Kanban-method styled continuous flow was much better option, and the discussions with some other people working on similar kind of environments also  seem to point out similar learning experiences.

As a main learning point, it is very important for us to consider the environment where we are working at and the limitations it might put to usage of the methods and frameworks that we choose. For software product development environment where team has multiple products to support and maintain, it would seem that Kanban method is better bet to start with for you.

If you are interested to dive more in-detail into topic and data behind it as well as some of the other things found during the two years period of research, my master’s thesis is available freely as PDF.

Opinion: First line managers have become a waste!

When you hear a title “first line manager”, what comes into your mind?

If you are software development professional, what do you think you manager’s duties are and what does he do? What value does he provide for organization, project or product?

If you are a project manager, what value does their first line managers deliver for your project or the members of your project team?

If you are first line manager, what is the value that you provide for the organization?

 

I have been acting as first line manager in two different companies, in addition to working also as developer and project manager at some point in both of those companies. I have personally always considered the position of manager to be position of great possibilities to help team to continuously improve and to enable the developers to reach their potential. To be able to succeed in it, I have seen it crucial to actively take part in daily work of the team. I have thought of being useful and important for team, and I still do think so.

However, the more experience I have gained from other teams, other organizations and other companies, I have realized that the way I work is not very much in line with most of the first line managers that there are. Instead, I’ve become to realize that there are loads of “goto loop” managers (the term that was invented by one of my respected co-workers, when he described one of his former manager). The goto-loop managers are very administrative by nature. It seems that instead of being actively working with team, they are just running some paperwork. They do the development discussions for their teams (of which they most of the time are really clueless of the development needs of their team members as they have not really worked with them!), give resources for the projects, or simply report and follow the hours and billing statistics for higher management. They have this set of repetitive tasks that they keep processing in eternal goto-loop, never changing or trying anything new.

Often these goto-loop managers are created by simply ridiculous organization structures that big corporations have (which is a good sign of how badly the upper management have lost the touch with the realities in grass root level and are trying to run the things like a factory.). If first line manager is for example working in matrix organization where he is assigned 40 employees to respond for him, of course all of his time goes into useless paperwork. That is truly shame, and I hope that any potential leader will realize in such situation to change his job or company to be able to be useful.

What worries me even more is that when these first line managers that have used that managing is just filling up papers and forms move to smaller organization where they would have real chance to have impact for their teams, they keep on acting the way they used before. In such situation, there would be no organizational need to concentrate just on useless bureaucracy, but they would have a great chance to help them team to become Team. But no, their mindset has been locked to be goto-loopists. In such case, it is especially clear that they are great deal of waste for both their team and whole organization!

It is truly worrying, in my opinion, that it seems that numbers of goto-loop managers seem to be ever increasing. Therefore I think it is fair to claim that first line managers are becoming a true waste in software development. If the trend keeps on going as it is, it might be worth to consider replacing their function with a decent secretary, who is most likely much better in all that paperwork than those managers in any case, or maybe even automate things by building a simple goto-loop manager software to replace them.

Sounds good? Or maybe there is third option, which would be to open the eyes in all levels of organizations of what first line managers really should be doing and be responsible for and start to demand it and support them to fulfill those expectations.

One thing is clear, if nothing is done, even higher number of first line managers will become waste every day.

 

 

 

A perfect ‘suits for all’ method for high performance software development

Gotcha!

Most likely you ended up coming to take a look if I am really seriously stating that I have such a holy grail in my hands (in other words, if I’ve lost my marbles). But in case you really are hoping to find a perfect suits-for-all-teams-toolkit for high performance teams, I also can sell you some love potions and pocket full of magical beans that lead you to the golden hoard of a giant!

However, there is a reason for me to pick such a title. Every now and then I end up hearing people praising single thing as remedy for all woes that any team could face, as well as people claiming that one cannot be truly “agile” or truly “high performing” or truly “something else” unless you follow certain set of practices or use some particular tools. Be it your local Scrum purist or zealot of great old Waterfall, they all might have some of their own experience to back their words. But I say to you, those prophets of their development religions are all false prophets. It is sometimes easy to get blind to the fact that each team, project and organization is different. Therefore each of them will need their own set of tools and approaches.

“Sure, sure, I knew that already. Tell me something new…”, mumble my performance aware readers. But this time I target my words to those managers who have stuck for long to believe for single truth and have found it to not work in new environment. I also target my words to those managers who are lost in the jungle of fancy practices and tools and have hard time to think of what to try with their teams. For them (and others who still might be reading through this), I decided to share some of my experiences of the practices that have helped with all the teams that I have worked with so far and for all the teams that I know that have applied those after they have seen what we gain from them.

This is not a fine full blown methodology, neither is it a framework or toolkit that will cover all that is needed to make your team one steam-rolling-software-factory-of-great-fun. This is just a tiny list of three practices and tools that might help you on your way to steer your group to become a team or steer your team to the path of continuous improvement. These three are the ones that I would first put into place if I would jump to manage a new team (or to become developer in a new team).

Visualize the work and workflow ( = Task board )

I have often been amazed of the number of managers that don’t know what members of their team are doing at the very moment. I’ve also been amazed of number of developers who have no idea what other members of their “team” are working on. I pity those lost souls, who have no idea of what task should be picked next and if they are bottleneck for others or not.

My heart bleeds for those poor bastards who are tackling their impediments alone, even though someone else could easily help them out with it.

When I see any of them, I can only shake my head and wonder why they don’t have a task board in their use.

Task board is something that is one of the most useful tools for any software development team (if you don’t have one for your team, you better take one into use tomorrow!). It has many important purposes that will help you.

First of all, task board will make team to be more of team by allowing you to better track where you are going on together.

Secondly, when you build your task board to be structured so that it follows your true workflow, you can start optimizing amount of your in-progress work to eliminate bottlenecks. It provides you a way to visualize your workflow (Kanban method, anyone?).

Third, it makes issues visible and enables us to solve impediments as a team.

Fourth, as a manager I never need to have that ankwardly silent moment when someone asks of me what person X in my team is doing. Instead I can say, “hmm.. Let me check from our wall. Ah, today he is working on optimizing the query on db y.”

I’ve personally been using both physical as well as virtual task board. Currently I use virtual mainly due to reason that members of my teams are not co-located. However, one very important factor when choosing my task board is the ability to modify it to my own needs.

I also prefer to have Kanban-board style of task board which allows us to set some WIP limits so that we can better optimize our flow. But that is bit more in-depth if you are just diving into fine world of task boards. In that case, just pick a task board and give it a try. Do it already!

Daily Meetings

Daily Meetings are something that has always become useful for the team, and even though there often seems to be some initial resistance and excuses of it being waste of time, the persons who would prefer to lose them after a while are very rare.

To get full advantage of daily meetings, you should of course have some task board on place as it enables you to visualize the current status.

What are the things that you gain from the daily meetings then?

First of all, it allows group to become team. It synchronizes all the team members of the current status and enables team members to seek and provide help.

Secondly, it brings visibility how the things are really going and enables both team and manager for better decision making.

There are few very important things to keep in mind about the daily meetings. They should be short and they should be focused on doing instead of going into details. Whenever there is need to head into such depth of details that not all team members are needed to participate, the discussion should be postponed to outside the daily meeting itself.

Probably the most known variant of daily meetings is defined in Scrum. The basic idea in that meeting is that everyone is asked three questions: What have you done since last meeting? What are you going to do before next meeting? Do you have any impediments?

The Scrum way is brilliant way to start and I’ve used that a lot as well.

However, we have been lately using more of the Kanban way of daily meetings. In that we focus on tasks and flow, starting from the “end” of the flow meaning the tasks that are most close to being finished. Then we go through all the cards on the wall that are in progress and check their status together and discuss if anything is needed from others to get them move forward in flow. That has worked extremely well for us.

Choosing tasks instead of assigning tasks

So, you are truly brilliant and insightful manager who knows exactly of which team member should be assigned which task? You have it all set in your MS Project and you have bravely shined your critical path to only have your most brilliant knights of code in it. You have been so careful and you have so great experience and.. You are bloody fool.

Even I, in all of my greatness, arrogance and self-importance, cannot state that I know better than my team of who should pick which task. I might know better than most of the developers if I would have a group instead of team. A group of individuals who are not cooperating and not knowing anything of each others, but I would never settle for a group when I could have a team.

There are loads of studies and knowledge these days that empowering team to share and pick their work instead of spanking them with tasks is far more effective.

So, why it is sometimes hard to let people as team to share their work?

One of the reasons is that if they don’t have visibility to the work that is in-progress for them as team and the work that is coming for them to do in near future, they really cannot make such a good decisions. That problem is tackled however now that you have both task board and daily meetings set up.

The resistance to change can also be a reason. Some people have used to be given tasks by someone who is higher in hierarchy and find it hard at first to try to figure out and share tasks with other team members. In most of the cases, that is something that gets solved in its time as the person gets used to the new style. If the person does not get used to the new style, the team often gets used to the person in a way that other team members start help him in finding suitable work to do.

But most often the main reason for sticking into manager-knows-best method is the personal fear of manager. What is manager good then if he does not know best of who should do that critical task and who that other thing? The answer is simple and deep inside of our managing mind we should know it. Let us spend that time by helping team to do their work as well as they can.

Empowering team to share the work does often lead also to other remarkable improvements as well. Work tends to become more fun and people tend to become much more committed. If some issues come up with a work flow or with the tasks, people seem to be more eager to become proactive in solving them as it is now conflicting with the work that They have chosen to be done.

Summary

There is no holy grail of software development methodology that will fit for all teams and projects and there will never be. If such is found, I will quit managing teams and move to some distant island to live as hermit as it would conflict with everything I’ve learned about teams and people so far in my career and life.

There are however some tools and practices that I’ve found useful so far in all of the teams that I have been working, of which I’ve shared three with you.

I truly hope that this will be of help for some of those who are in their path to lead their group to become a team, or make enable their team to start reaching closer to their potential.

Custom Burnup chart with TFS and Excel

Introduction
There are many things that I like in working with tools of Visual Studio ALM system, but whenever I’d like to have decent chart of where my project really is going it feels like being lots of manual work.

What I have most used to see, are the burndown charts and I really like to add more details such as some trendlines to give me positive and negative estimates for project schedule.
When I was once again starting to go through manual work of copy&pasting values in Excel to get my burndown work nicely, I decided that I’ll jump into adventure of figuring out something new and try to make thing simpler for me to update.

I pondered for a while of which kind of chart I could easily make of existing data that can be imported into Excel from TFS, and somehow burnup chart seemed like natural. So, it was time to say goodbye for my long lasting love with burndowns and welcome newly found affair with burnups!
I’ll describe step by step, how I did my burnup and summarize my impressions with the method I used.

Export report to Excel
First thing to do was of course to get some data to Excel. Luckily it is very easy, at least through Visual Studio Team Explorer. I clicked right button on query of work items that included all the user stories in the project I included. From context menu I pick “Create Report in Microsoft Excel”

.. and get Excel opened.

I have option to select from few predefined report types, of which I also include Trend reports, as it is a Trend report that I am really looking for.

Picking right values in Excel
There are few default charts now available for me, but one that is most close to what I’m willing to have is the one titled “Work Item Count by State”, which gives me a following chart.

 

There are few things that are not as I’d like them to be though. I’d prefer of having total story points instead of number of user stories, and in addition the chart does not include timeline of whole project but only part of it.

Luckily, the report is imported as a PivotTable, which makes changing it quite easy.

Taking quick look at the structure, to get values to be story point totals all I have to do now is to change Values to be Estimated Effort instead of work item count.

Done.

Now the values seem to be good for me, so next step to take is to change timeline for my chart.
I can do this by picking filtering option on the “Trending Date” column.

Here we can see that “Custom Filter” has been defined, so we remove it and also set our date filter to be after starting date of the project. This is done because some of the user stories had been created before the project and having those included very early on would give us distorted burnup.

So, click-click and it is done.

 

And here we have it. What I’d want to have next, is to include trendlines for done work and total work. That would be a good way to get estimated finish date.

However, including trendlines seems to be impossible task to do, because Excel does not allow trendlines for stacked graphs and we cannot add custom value fields to our PivoTtable when data is from TFS datacube. Blasted!

This means that only way to work forward with Excel would be to separate values from data by copying and creating table for that.

So we copy PivotTable values to new sheet with “paste special->values” and make a new chart with few modifications to include both stackable selection and trendlines (I don’t go into details of how to add those there, but in short it is done by having duplicated series for some of the values and placing also non-stacking line diagrams to be used as basis for trendlines).

And that’s it! It is our Excel based burn-up report from TFS.
Now, whenever we want latest graph of status, we can open this Excel and copy paste values from PivotTable to next sheet and get up to date status with burn-up that describes when our project is estimated to be finished if scope stays as it is and if when we are there if the scope growth stays as it has been.

 

Summary

It is pretty easy and straight forward to get data from TFS to Excel and very basic burn-up chart set up. However, when you want more details such as trendlines, or maybe baselines, the things get more complicated and you need to give up of some of the automation.

To have the chart on this level allows me to update the current situation with only one copy-paste, which is something I can tolerate.
Excel is not of course the only option for reporting with TFS, and maybe I will next time take look at MS Report Builder 2.0, which should provide more in-depth possibilities on handling TFS data than Excel. Maybe I find even fully automated way to do all the magic!

Agile personalities – from Champion to Antihero

Agile Champion is a title that most of us are familiar with. These often self-nominated champions of cause seem to be in center of most of the agile transformations. But what really are the characteristics of a true champion and are there some other kind of agile personalities and roles that we often find around us?

I’ve taken a look around and reflected some of my experiences to describe few types of agile personalities or “roles” that I’ve often seen. One thing to note is that most of them would not need to be “agile” but instead can be found running some other causes be they practices, tools, programming languages or something else.

So, just for the sake of it being fun sometimes to put things in boxes, here you go.

Agile Champion
Armed with loads of common sense, the agile manifesto and diamond hard determination, these tireless heroes of work are spreading the agile practices around them.
Agile Champions are the ones who expand or even break the borders that agile practices face in their environment, trying to continuously find better ways of working with others around him.
Agile Champions are masters in adjusting the practices to suit their environment, having the most important principles clear in their mind. Their Kaizen-mindset reaches continuously towards personal improvement and they are prepared to continuously challenge the ways of working that they’ve used themselves.

Behind all successful agile transformations there is a champion, even if they would not be known with that name.

Agile Follower
If the Agile Champion is backbone of the agile transformation, agile followers are the meat. Agile followers are persons who like to work in agile ways, often being spokesmen for those in their environment, but are not interested to get so deep into it and not to make a fight for it in such level that Agile Champions are. Most of the developers that are working with agile practices, in any roles, can be considered as followers.

Agile Prophet
An Agile Prophet is one of the most dedicated spreaders of message of their chosen methodology and practices. They will passionately preach others of the right way to do things, often based onto their own experience. Agile Prophets often have a one issue that separates them from an Agile Champion, and it is the fact that they have closed their eyes from personal continuous improvement and can only see their own preferred option of doing things. They often are very defensive against anything that threatens their preferred approach, often starting to hinder the change.

Agile Prophets are often very knowledgeable and extremely good mentors if their chosen method is picked. They seem to be born from the Agile Champions who have either lost their contact to daily work with agile practices, or who have focused too tightly on their environment and forgotten their personal continuous improvement.

It is very slippery road to be an Agile Champion, and easy to slip to become a Prophet. Luckily enough it is also two way road, and often self-studying can lead to notice that one has slipped from the path and to find back onto it.

Agile False Prophet
An Agile False Prophet shares lots of similar with Agile Prophet, mostly of being very passionate and dedicated into very specific methods or practices, ignoring most of the others. What separates the False Prophets from the Prophets is a simple fact that False Prophets have no real experience on agile practices, but instead are trying to spread word through knowledge of theory.

One can often find the Agile False Prophets consulting or lecturing others in some courses and classes with add-on agile flavor to get it more popular and trendy. They can also be found in companies that are going through agile transformation and someone is tried to be made an Agile Champion without real chance to grow through experience.

I’m often very sorry for the Agile False Prophets I meet because, when starting to discuss more in-depth about concrete cases where agile practices would be applied, their usually high self-confidence seem to shatter into pieces as they realize that their true nature has been revealed.

Agile Antihero
The title of the most infamous agile personality is one that is granted to an Agile Antihero.

Most of the Agile Champions have faced an Agile Antihero during their life. Agile Antiheroes are ones who have picked to “be agile” just because they can use it as a cover for some other of their personal agenda or to hide their personal incompetence to do their job. The famous quote of the Agile Antiheros are such as “Does not apply to us because we are so agile…”, which they use to explain various things varying from the fact why their projects state is unclear for all or why they should not document anything. They often strike into environments where no real Agile Champion has born yet and disguise to be one.

Agile Antiheroes are very good in giving bad name for all the agile practices, often adding additional borders for agile practices in their environment. When organizations are desperately seeking for ways to improve and become more agile, Agile Antiheroes manage to gain lots of respect and power which they really don’t use to make things more agile but to something that gives them advantage in the expense of the big picture.

But how do Agile Antiheroes born?
I’ve noticed them to born at least few different ways.

Some of them have been Agile Followers in other organization, joining the new organization which is not yet familiar with agile ways and impressing others with their basic level of agile knowledge. They decide to take position of expert on that field, without having real desire for in-depth knowledge and improvement but use that as a power to make themselves look better and to cover their incompetence.

Agile Antiheroes can also be born from the Agile Champions in very similar ways than Agile Prophets are born. At the beginning they walk the path of the Champion, but after reaching certain status and power in their environment they give up from personal improvement and fix into certain set of ways to work that suit them well, ignoring other approaches. When they’ve fixed their approach, they start pushing it into organization as only way to be agile and use their own status to twist it so that it will lead for them to be seen in better light and gain even more power. They are not really interested in turning things for the good organization, but instead focus solely on covering their own weakness.

Online Kanban Board comparison: LeanKit Kanban vs Agile Zen

“What virtual Kanban board tool should I try?” seems to be a question that is on the lips of the many readers of this blog.

I had the exactly same question on my mind when we first jumped to have fun with Kanban and noticed that Taskboard for Team System did not really support our new way of working.
In my search to find suitable Kanban board for us, I gave a try for two different ones; LeanKit Kanban and Agile Zen. I will try to summarize both the good and bad sides of the both tools from my perspective.

It has to be kept in mind that I’ve not used them in sense to try out all the things for review purpose, but instead will just give idea of how they supported the way that we have been working.

Board layout

Both of the boards have possibility for you to modify the board to suit better for your process, but this is something where LeanKit Kanban really is superior.

LeanKit Kanban allows you to modify you board in numerous different ways, allowing you to build the board to perfectly fit with your process.

In practice, you can for example do multiple parallel flows which I was planning to use to better synchronize the work of customer service and developers. You can also save your own board layouts as templates and use them for basis of the new Kanban walls.

Agile Zen does not allow anything fancy to happen, but just simple straight flow with lanes and WIP limits.

So, if you’re looking to get wild with board layouts, the LeanKit Kanban will get extra points from you.

Usability and information radiators

There are good and bad sides for both of the boards.

First of all, with LeanKit Kanban there did not seem to be any clear way to set the cards on the wall to be ready to be pulled to the next stage, but instead you had to add own lane for both in-progress and queue. This caused there to be need to split each lane for two, which made the wall seem more crowded. Agile Zen has solved this by allowing you to mark the card to be ready for pull, and also keeps track of this queue state in performance statistics.

The second thing what LeanKit Kanban is really lacking in comparison to Agile Zen is to add tasks into the card itself. There is possibility to add different type of cards such as cards for stories and cards for tasks separately, but for us that caused the wall to be flooded by cards if people really wanted to keep track of the tasks in any useful level. In Agile Zen you can add tasks for the card and they appear into it as a checklist where from you can easily follow what there is left to do. This has been an extremely useful for us and actually something that strongly supports the selection of Agile Zen in our case.

The card information is also placed much more nicely in the Agile Zen. If we take for example the card comments, which is supported by both boards, in LeanKit Kanban you need to open different window to navigate from the comment information when in Agile Zen you can just click your card and see the comments listed as part of the card.

So, this would seem to go 3-0 for the Agile Zen at the moment, but let’s not be hasty as there are also good sides on LeanKit Kanban.

One great feature in LeanKit Kanban, that seems to lack from Agile Zen, is to add descriptions for the each lane that you can easily access. In LeanKit Kanban you get small ‘I’ Icon in title of the lane and floating on top of it you are shown tooltip including information. What I personally found this to be useful for is to add lane based definition of done in there, which made it lots easier for team to remind themselves to follow DoD continuously.

So even though both boards are quite nice to use, the Agile Zen takes this round 3-1 by being a bit better in multiple little things.

Performance tracking

Both boards have tracking for team performance, including for example lead times, cycle times and so on. In general, there does not seem to be that much of difference in what you can analyze and I’m sure that both can be considered to be well usable, but for me the presentation of Agile Zen’s performance analysis was clearer to read and follow.

Pricing

As you have most likely noticed, lots of small things have made Agile Zen to be better for us to use, but the final reason which nailed the case was the pricing model. Where Agile Zen has a total price for given package, LeanKit Kanban has per user licensing. In our case, we are planning to extend the usage for multiple projects in which case the number of people can skyrocket which means that there would be constant need to be considering buying new licenses which would slow down the progress of taking tool into use. In addition, the LeanKit Kanban would cost you more with seven users than most expensive package of Agile Zen.

Summary

I think that both of the tools were pretty good and really useful in practice as well. In the end, Agile Zen seemed to be better both in terms of usability and pricing due to which it was picked by us.
There is plenty of good in both, but there are actually two things that both of the tools missed, that I’d really love to see in them.

First of all, neither of the tools has TFS integration. Yes, both tools can provide API to extend the system so that you can make your own, but in any case it is not excuse to provide at least some simple connector.

Secondly, it would be great to have possibility to set lane based checklists. With “lane based checklist” I mean a custom checklist that would be triggered each time that item would be moved out of the lane. I’d love to use that to be able to define definition of done for each lane and therefore make it easier to not miss something, especially if working with team that is still learning what the done really means.

So these are my experiences with both of the boards. I hope it pushed you forward in your search of the board that is right for you!

In search for ultimate Product Burndown Chart, part 2

Introduction

In my earlier post ”In search of ultimate product burndown chart,  part 1”, I went through showing one evolution stage of the product burndown chart of which I’m currently using. That specific chart separated the effect of scope increment from original scope. It also included two burndown trends, one for positive situation where scope can get frozen and one if we end up in scope creep.

The final chart to which we ended up in that article is the following.

I will not go in-depth in describing it more, but if there is anything unclear for you, please take look at the earlier post as understanding of the given chart is assumed in this post.

Burn down your work! ( in chart as well )

There are few things that you can count on, when it comes to business management. One of those things is that in addition to wanting to know when the product is ready, which we can estimate from usual product burndown chart , they usually want also to know how much effect it has to work amount.

Earlier I often did some calculations and averaging from current velocity, but there was always an issue that it felt very additional work and I always had doubt if it really gave that clear picture to others. I love the fact that with product burndown chart I can easily show others how the changes in the scope affect to the schedule and I truly want to be able to use the same opportunity to show them the effect for the estimations of work amount.

To solve that, I turned my product burndown chart to Product & Work burndown chart.

The new visible thing is, as you noticed; the green bars, their trendline and three intersection points.

The scale of the values has also been changed to be percentages instead of exact story points to be able to get story points and man-days to the same scale.

From this chart you can easily see prediction of amount of work used from original estimation in the time of given iteration. If you take projection of  the estimated finish time of the project to the trendline of work prediction, you also can predict how much extra work or less work there seems to be compared to original estimation.

As an example, three points are highlighted.

1)      Work amount prediction with original scope. This is useful information if discussing of reason of project delaying, as it can give clear indication of how much of the delay is due to failed work estimations and how much of it is due to growth of the scope. This is especially useful if your company has issues with resourcing, like people spending big amounts of time in something else than was planned, as it becomes very visible.

2)      Work amount prediction for positive schedule prediction.

3)      Work amount prediction for negative schedule prediction.

Conclusion

So this is what I’m currently using and what is working for me. This has enabled me to get rid of lots of “faceless” numbers from my reporting to steering group by replacing them with image that gives more insight to what is best prediction and why it is so in addition to what is the current state.

In addition to reporting, I’ve found it valuable tool for following the progress of the project and the resourcing as PO.

It has been two posts of searching my personal favorite at the moment, but I’d love to make it trilogy with help of the readers of this blog. So, if you have some “models” of your own for product burndown, please share them with us others and maybe I could write a summary article where I could put them together as collection.

How to act as an agile champion in different organizational roles? – Personal retrospective

Introduction

I consider myself as an agile champion, having had passion and privilege to push forward and improve agile practices in two different companies and several teams and projects for last six years. In most of the cases the team, or even whole organization, have been very new to agile practices and therefore it has required lots of personal effort to help the environment to find the best possible ways get more agile. Usually the most common path has been that I have had to put things in place, pushing people towards it, and then release my grasp step by step for others to take responsibility as well.

During that time, I have also been working on many different organizational roles and have noticed that, depending on your role, the path of agile champion is very different to walk.

I have been lately doing lots of investigation into my own development, weaknesses and strong points as an agile champion and as a part of this personal retrospective I’ve been trying to reflect the past experience in different roles to best support my actions in the current role, and decided to share the experiences.  I would also love to hear your experiences and opinions about this, and maybe my retrospective would teach me even more than I was expecting.


Dive into roles

Developer as the champion

I’ve been in this position in two different companies. First time it was easy at the start, having a team that already had lots of freedom to decide how to arrange their work. The greatest challenge back then was that we didn’t really know anything about agile practices but started our path through books and material that was available in internet.

Second time was when I changed company and ended up into project that seemed to be totally off the track in management perspective. The root cause seemed to be major communication issues.

In practice, there were four different languages spoken by four different stakeholders: customer, business management, project management and developers. Due to this, the estimations of the project state were totally different for developers than it was for managers. There had been some activity towards Scrum in some other projects of the organization, but this team had never really seen or heard of them.

Very soon after I joined the team, I suggested project manager an idea to try out the user stories as a way to find common language for all, and few weeks after that we were sailing forward on the Scrum boat.

I was very surprised how easy it was, as a developer, to get teams move to work with Scrum (or ScrumBut in first time).What however was most difficult, was to try to get the management realize what it was all about and what it would mean for them. The fact that there would be a Scrum Master in middle of project team and project manager (now moving to fill the responsibilities of the Product Owner), seemed to be scary as it certainly took some work and responsibilities off from the project manager.


Scrum Master-developer as the champion

I think that most of the time I’ve been pushing agile practices forward, has been in the role of the Scrum Master, which I think is most natural role for that if you are working with Scrum.

What is a bit hard in that role however is that especially for young Scrum teams it is very easy to confuse the Scrum Master having authority through position even though they would constantly be told that it is not so. It has been especially hard for me due to fact that I’m usually one of those guys of the team who keep suggesting new ways to work and goes around ensuring that everything is going forward nicely, even outside of the role of the Scrum Master.

All this will easily introduce the “reporting to Scrum Master” behavior, which slows down the self-organization of the team and limits the activity of other team members to active work on continuous improvement in processes and practices.

Another problem I’ve found out is that Product Owners are much harder to teach to work well with their Product Backlog than developers to work with Sprint Backlog and other practices.

It has been more a rule than an exception that to get the transition to happen, I have had to pick the mighty tome of requirement specification and turn it to User Stories myself after which I’ve managed to get Product Owner to get those into some kind of priority order. It has usually also taken lots of effort to try to help them maintain the Backlog, prepare properly to Sprint Planning and so on. It can take amazing amount of work and some time before they really realize how important it is to do properly.

In addition to that, the strong faith to the power of Gantt dies hard. I’ve noticed though that it does not hurt to let them hang in their safety net of the Gantt until they realize that they don’t really need it in such way as they have before. And before I’m slaughtered someone for my foul words against Gantt, I must admit that I actually find it useful in some level, but not in as detailed and not as daily as it tends to traditionally be.


Scrum master-developer-line manager as the champion

I’ve once ended up in situation where I’ve been Scrum Master, one of the developers and a line manager for the other developers in the team.

That kind of combination can work quite nicely for most of the time, but there are few clear issues.

First of all, it has magnifying effect for “reporting to Scrum Master” issue.

Secondly, when some issues come up that require harder actions from line manager, like some issues with employee that require manager intervention, the Scrum Master’s status as just one team member gets broken and team self-organization suffers.

During that time, I had to try quite a many tricks to teach team members that when I’m suggesting something it is not a command but just suggestion from equal team member. I even started to wear this red apron whenever I was acting as Scrum Master, so they could separate when I’m trying to keep ourselves working the Scrum ways and when I’m acting as developer who is interested in hearing how everything is really going.

So, in general, greatest challenge in working as agile champion and having also SM-dev-manager role was that it was very hard to try to teach people the agile ways and try to suggest improvements without making it feel as a command. The options often seemed to be just try to  let someone else figure out same thing that you had, or tell it and risk them leaning towards that it was your duty anyways and not the rest of the team and therefore hinder the team self-organizing and continuous improvement of the team as whole.


Scrum master-developer-product owner as the champion

This was quite a combination of bit of everything into which I ended up through organizational changes. This was my final role in the project with communication issues that was discussed earlier. When we started Scrum transformation, I took responsibilities of Scrum Master. Half a year later, project manager left unexpectedly for a long vacation and there was gap of size of Product Owner to fill. I had received lots of domain knowledge about the project during the time I was helping Product Owner to turn the requirements to Product Backlog and was really the only one left who could immediately start steering the boat without break. So, that is how I became Product Ownish Scrum Mastering developer.

What helped a lot in that case was that our team of developers was really small, consisting of only three of us and we all knew each other originally as developers, so there was not any big manager versus developer thoughts to deal with. However, it was impossible to separate those roles totally and therefore we ended up something Scrumish, which was that we took advantage to agile meetings and artifacts but at the same time the decision making of also the What-part got more inside the development team in addition to How. It had also good points, but often we ended up in situation that we all three spent too much of time thinking of things again during the sprints, instead of first finishing something with fixed criteria.


Product owner-line manager as the champion

This is my current role. I am currently product owner for two product development teams and first-line manager for all the developers in those teams.

One of the teams has some experience in Scrum from earlier project, and they currently are working with Scrum but there really is not anyone that I’d consider to really push things forward for them as they don’t have experienced Scrum Master, yet.

Another team is very fresh to any formal agile practices, but they are used to work independently as a team with not much supervision. With them, we started with Scrum and later on moved to Scrumban as they didn’t get comfortable with the sprints.

There is still an issue that even though both of the teams are getting grasp of basic ideas of continuous improvement and being agile, they still haven’t started to show passion to push those forward enough. In addition, they are constantly heading to pitfalls with practices that only I in our team seem to spot due to my earlier experience. Because of that, I’ve still been quite actively suggesting them new practices and tools to try out, and been pointing them of possible issues that they might be heading towards.

However, I have been starting to think more and more that I should just let them flow and make their mistakes, only giving them hand as mentor if they come to me to ask for it. This is mainly due to the fact that I’m pretty sure that my advices are having negative effect to their self-organization and dedication to find improvements by their own.

That is what I find hard at the moment, to decide when it is right moment to step behind and let them do their own mistakes and how long they should be coached by me before that.

One thing that I love in this role is the fact that for all the time that I worked as Scrum Master I kept hearing tales of how hard it was to describe and present Product Backlogs, Product Burndowns and such for higher management and I always thought it is due to the fact that people just fail to see the things from both perspectives or lack the tools to combine benefit for all. Now I’ve had chance to work on providing visibility to the agile projects in the ways that also management feels comfortable, but at the same time are more faithful to the ways we work.

It truly is satisfying to notice and to be able to prove that working agile does not mean that management has less predictability to project or less ways to have effect to development, but instead gives better visibility and enables better decision making in all levels of the product development.


Summa summarum

It has been interesting to work in different kind of roles while working as an agile champion, and it certainly has given me lots of insight of what the agile looks like from different levels of organization when it is first introduced. This little retrospective of my own also opened my eyes for many things that I most likely could have done better, but also to many things of that I did do right way.

What I would really love is that you would share your own experiences as well, or give me suggestions of how I could’ve better tackled some of the problems I faced.  And it would be even better if you would have great ideas and practices to share about my current problem, how to step behind and at the same time be able to help the team with my experience.

So, don’t be a shy but instead leave your mark to this post by telling your opinions, ideas and tips.

In search for ultimate Product Burndown Chart, part 1

Introduction

The burndown chart is an excellent tool. It has many great advantages, which of most important is an ability to give a quick and clear visibility to the state of the sprint, release, project or product. They are extremely versatile, and well designed burndown chart can often be used to gain advantage in many levels.

Starting from the day when I first entered the fascinating world of these royals of the graphs, I’ve been trying out many kinds of versions to suit different organizations and teams. In this article I’ll describe one evolution phase of the product burndown chart that I’ve tailored to be used in my current projects. I’ll introduce the evolution of the chart step by step, so that those who are interested in working on improving burndowns can follow closely.

However, if you’re curious only about the final results, you are free to skip at the end of the article where final version is described.

Classic burndown

First of all, let’s take a look at the “classic” product burndown chart.

It is quite nice in general, but what it really falls short is in giving real indication if fluctuation in it is due to changes in velocity of the team or changes in the scope of the backlog.

It is pretty easy to notice that there must be some increment in size of scope in between the iterations 5 and 6 due to the fact that number of remaining story points gets higher. However, it is very hard to notice the effect of scope changes in situations where they are smaller, and in while observing in the scope of the whole project instead between of individual iterations.

I myself find it very useful to know how much scope changes there has been due to many reasons, one important being the fact that it enables me to spot earlier the possible team related problems and separate the scope related problems. In addition it allows me to learn from the earlier projects while estimating the possible effects of scope increments on future projects, and in addition it is very good tool to use to show the effect of adding new user stories to the estimated finish date of the project.

Due to that, I usually like to show the scope changes in the burndown chart as well.

Burndown with scope changes

Here you can clearly notice the same scope change as in earlier, during the iterations 5-6, but you also can notice that some of the quick progress after that is due to the fact that something was taken out of the scope as well. The estimated finishing point can now been seen in the intersection of the two trendlines which, as you see, is exactly same position as in first graph.

However, there is problem with this kind of scope estimation.

The problem comes when there is some specific major point where you might get majority of scope increments and the amount gained during the rest of the development is just minor. In such case, the burndown shown above shows the estimation that thinks that scope increment will go on with average increment that is strongly affected by that one major event.

To nail that issue, and to better provide insight to business management and customers about the effect of stopping the scope creep or going on as before, I also include another trendline for the scope increments.

Burndown with optimistic and pessimistic estimate for scope changes

As you can see, the another trendline is logarithmic, giving better impression of smaller increment to the scope.

This gives me now two intersections:

1)      Optimistic finish date, which can be reached with current velocity and only slight increment to scope

2)      Pessimistic finish date, which indicates situation where scope keeps increasing the same level it has been so far.

Most likely the truth can be found somewhere in between of those two intersections.

The look ahead

The burndown chart shown in this article is quite close to the one I’m currently using, but not exactly the same. In my current version I’m also including some additional information about the statistics of how the team is progressing compared to the original workday estimations given to the business management. That information as a part of burndown is however a bit different story by themselves, and I think it is better to write another short article to demonstrate those, in case someone else has similar needs.

Summary

The burndown charts are great fun for the Excel freaks like me. By thinking your own environment, phase of your project and the needs of reporting, you can modify them to give many kind of useful information. One fun thing of them is also their scalability to different levels inside the project. For example the chart I just introduced as the product burndown chart can also be used to replace sprint burndown chart if the unit is changed to be hours. That kind of sprint burndown chart will give team better impression of how much they generally miss of their tasks during sprint planning and can therefore be taken as support tool for improving sprint planning

Thanks for reading, I hope it has been helpful! And now, go on and have fun with your Excel!

 

Sample excel sheet

I decided also to make sample excel workbook to give out template to start using this kind of burndowns easily. Feel free to download and use it from here

Create your own website, free on WordPress.com.Create your own website.
Start free