Wednesday, February 21, 2018

What is Scrum?

Scrum is one of the most famous agile methodologies. Its history can be traced back to a 1986 Harvard Business Review article, “The New New Product Development Game” where Hirotaka Takeuchi and Ikujiro Nonaka introduced the term scrum in the context of product development.
Scrum proposes two main concepts:
  • Decomposition of the work in short cycles of delivery and feedback
  • Empowering teams and trusting them to optimize their work
The idea is to provide a framework to enable the team to organize itself around the context it is in and the available work, to find the best way to perform the work properly and to remove impediments.

Scrum Roles

Scrum defines three roles that will keep the process flowing:
  • Scrum Master: which is responsible for making sure that the scrum process is being properly used and followed. Besides that, (s)he is also in charge for removing impediments from the team’s way
  • Product Owner: which is the voice of the customer next to the team. A PO has the responsibilities of define the priorities, manage the backlog and, above all, maximize the value of the product and the work of the team
  • Team: which is the group of people that really does the job. The team is responsible to find the most productive way of performing the work at hands. Usually the team should have between 3 and 8 people

Scrum Ceremonies

Scrum defines a set of events or ceremonies that are always time limited and quality oriented. This time limitation is based on the concept that meetings are non productive time by definition and that developers should spend the most of their time doing what they are good at: developing great software! Besides that, they provide opportunities to plan the activities to foster predictability of results and, in the end, a quality work. Here you can find the list of ceremonies proposed by Scrum:
  • Sprint: The sprint is the unit of delivery and feedback. It is in a sprint that the real work happens. It usually takes between 2 and 4 weeks. This duration is defined by the team in conjunction with the scrum master and the product owner to maximize product value. Once the sprint duration is defined in the beginning of the project, it should remain the same during all the project
  • Sprint planning: this meeting is used to plan the work of the present sprint: the sprint backlog tasks are selected and estimated. The meeting is led by the scrum master and both the team members and the product owner must be present. The product owner should provide all kinds of clarification to enable a correct estimation and the grooming of the backlog items and sprint backlog definition. Once the sprint backlog is defined no changes should be accepted during the sprint (this rule can only be broken on very special situations and should be very uncommon). The duration of this meeting should be 2h per sprint week (for instance, a 2 weeks sprint should have a 4h sprint planning meeting duration)
  • Daily stand up: these meetings are the most well known and widespread, but not always well used meetings. Usually they involve the scrum master and the team. However, the product owner may also attend these meetings. They occur every day (usually at the beginning of the day) and they take, at most, 15 minutes. Everyone should be on their feet to incentive a quick meeting. The main purpose of these meetings is to plan the work day. Here each team member should report the main difficulties that (s)he is facing and the risks that (s)he foresees for this day. All the remaining subjects should be issued outside these meetings. It is the scrum master’s task to lead these meetings and ensure that they are quick and effective
  • Sprint review: this meeting is led by the scrum master and should be attended by the team, the product owner and other stakeholders invited by the product owner that may be relevant for the product or the specific features of this sprint. The duration of this meeting should be 1h per sprint week (for instance, a 2 weeks sprint should have a 2h sprint review meeting duration). In this meeting all the work performed (and finished) during the sprint will be presented to the product owner and relevant stakeholders. The attendees will, in turn, provide relevant feedback to the development team. The idea is always to show the increment of the sprint in the working product and collect relevant feedback to increase the product value. Now, with all this relevant people at the table is also time to discuss the next steps of the project in order to maximize the product value. This discussion will have, as output, a product backlog update
  • Sprint retrospective: this meeting is led by the scrum master and should be attended by the team. The duration of this meeting should be 1h per sprint week (for instance, a 2 weeks sprint should have a 2h sprint retrospective meeting duration). This meeting occurs after the sprint review and before the sprint planning meeting of the next sprint. Its goal is to analyze the sprint that is finishing and propose improvements to the next sprints in order to make the next sprints’ outcome more effective

Scrum Artifacts

Scrum works around several artifacts that support all the process. I will describe here the ones that I think are important to the process itself. There are others that are important for the management of the process that I will refer and describe in detail in future posts.
  • Product backlog: describes all the work that needs to be done in order to finish the project/product. It is an ordered list of items and it is constantly improving
  • Sprint backlog: is a set of work select to the current sprint and a plan to complete it. It should be kept unchanged until the end of its sprint. The set of work is selected on the sprint planning meeting and should be dimensioned in order to be accomplished during the sprint. For quality improvement purposes it should include at least one high priority process improvement identified in the previous retrospective meeting
  • Increment: is the set of product backlog items that were finished during this sprint. This artifact will be very important for the measurement of the process and team improvement
  • User story: describes, from the user’s perspective, a feature that a user can use. A product/sprint backlog is composed by user stories and, when needed and the product owner accepts it, technical items

Adding all up

Ideally a project may start with a set of user stories in the product backlog (however, in the real word, it may start with just an idea in someone’s head or a diffuse description of some requirements). There may be one or more sprints dedicated to the grooming (definition) of user stories or even to the technical project setup. Usually these initial setup sprints may start to include “normal” user stories. Hopefully as the team and the project stabilizes, there will be more and more percentage of “normal" user stories.
A sprint should start with a sprint planning meeting. In this meeting a sprint backlog is extracted from the product backlog. Each of the following days of the sprint you’ll have a daily standup meeting where the team organizes itself to accomplish all the items of the sprint backlog. At the end of the sprint, the accomplished items (comprising the sprint increment) are presented during the sprint review. Immediately after this meeting, a sprint retrospective should be held. Here all the problems that were faced during the sprint should be addressed and solutions should be proposed in order to improve the overall process. At the end of this meeting the sprint is officially finished and a new sprint with the correspondent sprint planning should be started. And all the process starts again.

Conclusion

These are the basics about Scrum. In future posts I will enter in more detail about each of these parts, how they relate to each other and how all the process can be measured or, in other works, managed.

Saturday, February 3, 2018

How about Agile

Agile manifesto is around for about 17 years. Even so, there is a lot of unknowns and misconceptions about agile and agile methodologies. First of all let me start by showing the main and, for me, the most powerful declaration of the manifesto:

Individuals and interactions over processes and tools
Working software over comprehensive documentation
Customer collaboration over contract negotiation
Responding to change over following a plan

That is, while there is value in the items on
the right, we value the items on the left more.
(Taken from Agile Manifesto: http://agilemanifesto.org/)

As you can see in the last sentence, the manifesto guys recognize value and importance to processes, tools, documentation, contrats and planning. The only point is that they value MORE people, human contact and multidisciplinary teams, the working software and adaptation to changing requirements. Almost all of the 17 guys that developed the manifesto either had managing positions or they had their own companies. So, believe me, they knew the importance of a contract and what that mean. But, even so, they proposed a framework where the collaboration with customer, the adaptation to change and working software were more important than the contract which paid their salaries. Well, of course they cared about their salary and their companies: what they wanted is to get their customers happy by given them working software that fulfilled their needs. If these customers are happy they will spread the word and more customers would ask these guys for their services and everyone gets happy and with more money in their pockets. Hey, but isn’t that what everybody wants? The customers want to have its software done by the price they agreed (assuming a fixed price contract that still is the most used) and the provider wants the project done on schedule and on budget. Well, yes, but everyone has a different opinion on how to get there.

Waterfall vs Agile

The agile manifesto just showed clearly that the waterfall methodology was being wrongly used for a great number of software development projects (there were also other methodologies that were a mid term between waterfall and agile, however they were not as widely used as waterfall, the de facto standard until then). Is like having a hammer and using it for everything. If you want to tighten a screw, if you hammer it enough times, eventually it will get stuck to the wall. However it is neither the right tool nor the most effective way to get a screw tighten. To tighten a screw you should use a screwdriver. The same happens with software development. Waterfall is the right development process to use when the requirements do not change much and you have clear objectives and application rules. Mathematical applications are good examples of that. First you learn the rules, master them and document them based on the clear goal that you have to your application, then you design your application based on the knowledge that you gained, then you code the application based on the design and finally you test it. It works well if you have a clear goal in mind and because the rules are objective and don’t change very often. The geometry invented by Euclid is still valid today. However, with a business application the same doesn’t happen. First of all, the rules are not clear to everyone (I’ve been in situations where they were clear to no one at all) neither the goal. Second, much of these rules to implement are subjective which means that different people have different answers to the same question of the developer/analyst. Third, and probably the most common one, the rules to implement and the goal change often during the development of the application which means that if you take, say, 3 months (to be optimistic) to do the analysis, then 4 months to do the design, then 7 months to development and another 4 months for testing and bug fixing… 1,5 years assuming that everything went for the best and that the project had a very competent project manager… This is a typical waterfall approach. How many applications do you know that don’t change during 1,5 years? Well, I’ve seen some, but far from being the majority.
The bottom line is that waterfall and agile, both are good tools and both have proven its value. However, each should be used according to the characteristics of the project and the team.

Agile misconceptions

There are some common mistakes that are linked to agile methodologies. Here you can find some of them:

Agile means no documentation

The minimum unit of documentation used in almost all the main agile methodologies is the user-story. This is the equivalent to a requirement or a use-case. It comprises a high-level description of what a customer wants to be done in a particular use-case. It is written or, at least, inspired by the customer and refined by anyone that participates in the project at anytime required. Not all the knowledge of the team is described by user stories (after all it is a slim and high-level description), but every single user-story is always the base of the job to be done by the team so it is always up-to-date. If the project or the team requires a more detailed documentation there will be specific user-stories or tasks that will take care of them. And this documentation is created ‘as required’ and not necessarily in the beginning of the project, since, as we all know, at the beginning of a project, things are not accurate by nature.

Agile has no planning

In my humble opinion, it is exactly the opposite: You do planning through all the project. The difference is: you plan what you can and need. Usually, at the beginning, you have a short high level plan that sets the goals, overall budget, priorities, but not specific days or duration. Then you do your planning for the first short period of time. At the end of that period you plan for the next short period of time and so on. This is similar to, but not exactly the same, as the rolling wave planning technique proposed by PMI. You plan what you need and leave the rest to the next period. Then, you will have more knowledge that will help you in the next planning step. Of course, all these short period plans take into account the high level plan created at the beginning.

Agile is only for software development

Agile methodologies propose guidelines for work delivered by a team. In fact, some of the most used methodologies (Kanban for instance) came from industry (automobile) and were later applied to software development. Besides that, there are now several areas successfully using agile methodologies to deliver their work. For instance IT support, finance, product development and marketing.

Agile need no project manager

The agile team organizes/manages itself. However, you need someone to set the pace and guidelines of orientation. Undoubtedly the empowerment of the team and the individuals in the team help the “leader” (lets call it like this) and ease its work. However you will need someone to help the team to optimize its performance, to guide to product goals achievement, to follow the environment rules, to be on budget and on time. Depending on the methodology, you can have these tasks distributed by one or more roles.

Agile is good (bad) and waterfall is bad (good)

As stated before, every methodology has its own characteristics that will adapt better or worse to a given situation. Even “inside” agile, there are several different methodologies. Some adapt better to some cases than others. There is no universal panacea. You should evaluate the concrete case where you are and chose the methodology (waterfall or one agile methodology) that best suits your situation. Sometimes you must even change methodology after starting the project. It is the situation and not the methodology that defines what and how should be done to have good results.

Conclusion

The agile methodologies arrived at the software industry in the early 2000’s and they proposed a new way of delivering software. Since then, nothing got back to the way it was before. A new way of thinking brought some sanity to the software world allowing cost reductions and quality improvement to many software projects. Does that mean that waterfall methodology is bad or is dead? No, because it still makes sense and it is the best choice in many types of situations. However a new option has emerged from the agile manifesto allowing you to be able to ask: “How about agile?”.

Drive

Drive , a 2009 book by Daniel H. Pink, is a story about what motivates us. It argues that punishment and rewards that organizations and man...