Thursday, August 30, 2018

The Spotify way

I’ve been talking about Scrum and Kanban. These are well known agile methodologies (or frameworks) that work well for teams until, say, 8 people. After that, you need to scale. You need to stop thinking about one team and think about one or more teams of teams.There are some frameworks that address this scale problem. I’ll start by analysing and describing Spotify model which is already a well known model.


The beginning

Spotify started in 2006 (their first music player was launched in 2008), as many other companies do, with agility in mind. They started using Scrum as a base methodology. This worked well for some time, until a certain level of growth. However, it started to get in the way. So they decided to start to experiment under the principle: “Fail fast, learn fast, improve fast”.


The birth of squads

The first thing they did was to make some Scrum practices optional, because to stay agile was more important than follow any model or framework. In order to remain coherent they renamed the scrum team to a squad and the scrum master to agile coach.

A squad is the primary organization level. It is a self organizing and cross functional team (usually less than 8 people) which is autonomous. This means that it has end-to-end responsibility on what they build (design, architecture, deploy, maintenant, operations, ...) and they decide how to build it.

Spotify has more than 50 squads spread across several locations, so they need a structure. Squads are grouped into tribes (which are light weight matrices) and chapters. Every team member in a tribe belongs to a squad as well as a chapter. In PMI terms, a squad corresponds to a project team and a chapter corresponds to a competency area such as agile coaching or web development. The chapter lead is like a line manager and its goal is to mentoring the people from the chapter as engineers. People can, for instance, switch squads and keep the same chapter and chapter lead.

Besides this, they also created guilds. Guilds are interest communities where people across the company share knowledge within a specific area such as leadership, web development or continuous delivery. They can have a mailing list, conferences or other means to share knowledge and have discussions on the subject matter.

Here you can find a picture extracted from http://labs.spotify.com explaining the all structure:

So, as you can see, this is not particularly innovative. In fact, even PMI and the waterfall projects and organizations have structures very similar to these. However, this is the easy part of organizing a company. The other, that I will describe next, is much more harder to achieve and it is where Spotify model succeeded: its culture.


Spotify culture

The Spotify culture is based on some key principles that I will enumerate in the following lines. As I said before, this is the most difficult part, where effort must be consumed every day and it is a never ending job.

Autonomy

This is the main principle and, for me, the one that drives all the others. As I said before, the squads are autonomous. The decision of how to do the stuff that needs to be done by the squad is taken within the squad. That also includes the tools that each squad uses. The leader’s job is to tell the squad what to do and why.

As everything in life, this autonomy has its boundaries:
  • Every squad has a mission and short term goals which are aligned with the product strategy and Spotify’s overall mission and goals
  • Every squad must be aligned with the other squads around. All the squads must be loosely coupled, but tightly aligned
Each squad is responsible for at least one system in spotify application/ecosystem. Every system interacts with other systems. If you are experienced with software development you are already seeing that these systems and their dependencies in one single application transform each and every deployment into a nightmare. Imagine all the 1200 people depending on each other for doing a deployment… Crazy, right? They are also committed in making releases easy and routine. It seemed contradictory, so they needed to find a solution to combine both things and keep squads autonomous. Instead of defining a set of complex rules to manage the dependencies and synchronization between systems and squads, they changed their architecture. Their application is now a web browser in disguise. Each system is like a frame in their “browser”. This enabled decoupled releases and provided a way to reduce dependencies between squads and keep squads autonomous.

Sense of community

For Spotify, the community and the collaboration among all its members is more important than structure. For instance, in terms of tools, there is low standardization. This means that, for a given action a squad can select whatever tool they think is best fitted. As more and more squads start to selecting the same tool and providing informal support to it, it becomes a “path of least resistance” and a defacto standard emerges. It is the community and not some hierarchical enlightened chief that decides the tools to use.

Another example relates to code. They have an internal open-source model. No squad is the owner of any code. All the community is responsible and invited to do whatever needs to be done. Imagine that squad 1 is responsible for system A and squad 2 is responsible for system B. If system A needs a modification on system B, as squad 2 is more familiar with that code, squad 1 will ask squad 2 to make the required modifications. However, if squad 2 has no time to do it, instead of waiting, squad 1 is completely free to go and make the modifications on system B. After those modifications, squad 2 will do a code review of squad 1’s modifications.

Fail safe environment

Along the process of building and growing a company, is inevitable that problems and failures will occur. For that reason Spotify kind of celebrates the mistakes. Of course, not in a self-punishing or masochist way. They use this mistakes not to blame people or squads, but as knowledge to be shared by all Spotify community. Besides that, you must recognize that the titles like “How we shoot ourselves in the foot” are quite “catchy” ;)

So learning through failure is OK. However, if you fail too much or in catastrophic ways you can get to a point where the customers will see your app/service as unreliable. To mitigate those failures they followed a “limited blast radius” approach. First of all, they aim to have a decoupled architecture. This means that, if you deploy something that is not OK, it usually has a limited effect on the entire application. On the other hand, they do gradual rollouts of new features. This means that (again) if something is not OK, it will only affect a small group of users.

Creative friendly environment

A fail safe environment has another side effect: it reduces the fear of innovate. In fact, Spotify is also known by allocating 10% of its workers’ time for hacking. It also has a hack week where people “do whatever, with whoever in whatever way”.

In fact, there is another interesting approach that is followed to implement innovative hypotheses. When some new feature or improvement is proposed it is implemented and rolled out gradually. As soon as the feature is released for a limited set of users, data is immediately collected and analysed. If users like it and use it, a bigger group of users gets to see the new feature and the cycle is repeated until the complete rollout is made. Otherwise, the feature is dumped. The innovation is driven by data and evidences and not by opinion, ego or authority.


Conclusion

Spotify is one of those organizations where continuous learning, continuous improvement flexibility and innovation are crucial facets of its culture. Does it mean that it is perfect? Of course not. In fact, the characteristics described here are somewhere in the middle of where they are and where they want to be. There is much room for improvement. However, with this mindset, each days that passes puts them closer to their goal.

Sunday, April 22, 2018

How to measure Kanban?

Kanban inventors and implementers are usually very keen on metrics. I, as a Kanban implementer, am no exception. In this article I will share some of my views and ideas on metrics that can be used in Kanban. You must keep in mind that kanban is always about simplicity and focusing on doing just enough to achieve your goals.
Here you can find a non exhaustive, but yet, interesting list of metrics and charts that are very informative and helpful in terms of measuring your team/project performance and evolution.

Cumulative Flow Diagram (CFD)

This chart was already described in a previous post. The idea here is to show the distribution of stories per state along the span of a project. The x-axis represents the time and the y-axis shows the number of stories. Each color band represents a column in the board and its height shows the number of cards in that column in a given point in time. The order of the bands should be (from top to bottom) the order that the cards follow in the columns of your board, so the top most band should be “Backlog” and the bottom most should be the “Done”.

With this chart you can extract the following information:
  • Lead time: Indicates the amount of time that a task is in the system. In other words, it measures the time a task takes to get to the “Done” column (deliver a finished task). In a CFD, it can be measured by drawing an horizontal line that connects the top most line and the bottom most line. The length of this horizontal line, in time units, is the lead time.
  • Cycle time: It is the same principle as lead time. However, in this case, the idea is to measure the time that a task takes to get from point A to point B in the system. To do this you need to measure the horizontal distance between the two lines that represent points A and B.
  • Work in Progress (WIP): Represents the amount of tasks that are in the system. A big WIP tends to increase the lead time, multitasking, stress on the team, etc. It can be measured by a vertical line that connects the bottom most line to the upper most line. The length of this vertical line, in tasks, is the WIP.
  • Process bottlenecks: If a sudden increase or reduction in the thickness of any band shows up, it means that there is a bottleneck in that stage of the process. It is a warning sign that should be considered and resolved.

Cycle Time Control Chart

This is a typical Control Chart (a Tool & Technique of the PMI Control Quality process). The x-axis measures the chronological time and the y-axis represents the cycle time of the task. For each task you mark its cycle time on this chart.
The chart should have an horizontal line that represents the mean of the cycle time of all tasks. Then it should have 2 more horizontal lines that are the Upper and Lower Control Limits. These lines are both at the same distance of the average cycle time (one above the average and the other below the average). This distance is, by definition 3 times the standard deviation from the mean. You can follow this rule, but another distance can be defined (and adjusted) by the kanban team or manager. A typical control chart would also have two more horizontal lines called Upper and Lower Specification Limits, but as we don’t have specifications, we won’t consider them.
The idea is to control if the cycle time of the tasks in the system always falls within the control limits. When this is not the case an analysis should be performed and a cause should be identified and corrected in order to prevent it from happen again.

Lead or Cycle Time Distribution Chart

This chart shows how many tasks took a given amount of time units to get to their destination phase. It enables us to get a visual insight of the likelihood of fulfilling a given task in a certain amount of time.

Flow Efficiency Chart

In an ideal world, 100% of a worker time should be spent on adding value to the product (s)he’s building. However, we all know that this is not true. Heither because (s)he’s waiting for work handoff, or because (s)he’s waiting to another team to fix a bug, or a super priority task showed up and everything else must stop right now, or the specifications aren’t ready yet, or there is an hardware problem, or because the network is down or a provider didn’t fulfill the contract, … You name it. In these situations the time passes and the work doesn’t get done!!!
The Flow Efficiency Chart measures the percentage of time used in a task that was really used for value added purposes. In other words, it is the ratio between the value adding time of a task and its cycle or lead time:
Flow Efficiency[%]=(Value-added Time/Cycle or Lead Time)*100
You can measure this value per task or you can use CFD to provide you the information you require. The first option is the best if you have in place a tool that does these calculations for you, otherwise you will have a hard time doing it. The second option will just provide a mean value per time unit which is a lot easier to calculate (most of the times this is just enough).

Conclusion

There are much more charts and variances of each described chart, but, in the end of the day, it all comes down to the question: how can I improve my working process? What you need to find is the smallest set of charts/KPIs that provide you the most information about how your work is flowing. These charts/KPIs are the tools that will tell you if the modifications that you should continuously introduce in your process (using the scientific method as described in my previous post), really improved the flow or not. Only with these tools you will really control and improve your workflow.

Wednesday, March 28, 2018

Kanban

As I stated in a previous post, Kanban is a good example of an agile methodology used in software development that had its origin on industry. It dates back to the early 1940s where Taiichi Ohno, an industrial engineer at Toyota, implemented it for the first time. David J. Anderson was the first to apply this concept to IT around 2004.
There are some discussions around the fact that kanban is not an agile methodology, but a lean methodology. In fact, kanban and the work in progress limitation has its origin way before agile manifesto, so, technically, it should be called a lean methodology. However, in my humble opinion, this is a pointless discussion. What I care about is:
  • Does it help the team to work better and to feel motivated?
  • Does it fit the context where the team is in?
  • Can it help me to manage my team to build better software?
  • Does it help to improve the team’s performance and output?
According to my experience, where I implemented a Kanban system, the answer to all this 4 questions is YES.

Kanban Principles

In IT in general, Kanban is one of least impositive methodologies. It has a small and very simple set of rules. No ceremonies, roles and rules are prescribed. If needed, they should be adapted to the context where the team is in, in order to achieve the best results. The principles of kanban are:
  1. Start with what you are doing now
  2. Agree to pursue incremental, evolutionary change
  3. Respect existing roles, rules, job titles and responsibilities
  4. Encourage leadership actions at all hierarchy levels

How to implement a Kanban system

The previous principles are put to practice with the following core practices of Kanban:
  1. Visualize: to achieve this goal you have a Kanban board divided by columns where each step of your workflow is translated to a column. Each task is represented by a card. As you go on with your work, you move your card (task) from column to column until you finish the task. This tool provides a quick view of the work to be done, the work in progress and, most important of all, the possible bottlenecks of the system.
  2. Limit the Work In Progress (WIP): Kaban is a pull methodology, which means that a work item enters the system when the system needs it, not because there is an “outside" imposition to the system. To implement this characteristic you impose limits on the number of cards in a column. In other words you limit the Work In Progress (WIP). You can only add cards to a column if the number of cards in that column is smaller that the limit that you set. If the limit is reached, no more tasks can be added and the team must concentrate in moving cards from that column to the next to make room to other cards. You can set column limits in one or more columns. It’s up to you and the context you are in to decide.
  3. Manage flow: in any management task, you have to measure in order to know if things are happening. Here is no different. Kanban has a lot of things that can be measured. The good part is that all of them are pretty simple. The chart that I find more interesting, helpful and informative is Cumulative Flow Diagram (I already described it in a previous post about Scrum). I’ll enter in more detail about this chart and others in my next post.
  4. Make process explicit: all the process must have simple and clear rules for everyone participating in it. The idea is to avoid different interpretations of what to do in each step or how to proceed in a given situation. You should have the least possible rules that reduce discussions about the process in order to smooth the flow. However, all these rules should be clear, agreed and accepted by everyone.
  5. Implement feedback loops: as in other methodologies, kanban also proposes opportunities to improve the action of the team and the process itself. In Kanban parlance they are called cadences. They are 7, all optionall, and they should be implemented according to the maturity of the team, context and degree of kanban adoption companywide:
    • Daily standup meeting
    • Replenishment meeting
    • Delivery planning meeting
    • Operations review
    • Service delivery review
    • Risk review
    • Strategy review
  6. Improve collaboratively, evolve experimentally (using models & the scientific method): this practice can be resumed by:
    1. Watch your data/context/situation
    2. Formulate hypothesis on how do you think it could be improved
    3. Choose one and implement it
    4. After collecting enough data, evaluate it: if the team improved, keep the implementation, otherwise revert it
    5. Return to step 1. of this practice

Why Kanban?

The continual usage and adoption of these practices allow us to achieve the following goals:
  • Evolutionary, incremental change with minimal resistance
  • Achieve sustainable pace by aligning throughput with demand
  • Quantitative Management and predictable throughput
  • Better risk management (the emerging theme in the Kanban community)

Conclusion

And that’s it. With these tools in place everyone is able to see what is happening and propose solutions. And remember: no one is the owner of the truth. Listen to your team carefully: they suffer all the “pains" of the work so, for sure, they have the answers to smooth the workflow and to optimize the output. Ask them and you’ll be surprised. In a next post I will also describe some tools to measure the process flow and to expose clearly the bottlenecks so you can take actions in a timely fashion.

Thursday, March 8, 2018

How to measure Scrum

There is a saying, that I like very much, that states: “you can’t manage what you can’t measure". Scrum is no exception. However there is a common misconception about agile methodologies such as Scrum: it is not supposed to be measured. In fact, in my humble opinion, Scrum has the right characteristics and the proper motivation to be easily measured and controlled. Why?:
  • Scrum is oriented for quality and improvement. How can you know that you are improving or that you achieved your goal (quality) if you don’t measure it?
  • As opposition to other methodologies, the main measures proposed by Scrum are very easy to collect
There are 2 metrics proposed by Scrum that are quite common:
  • Velocity: it measures the quantity of work finished in a sprint. You calculate it by adding the story points of all the user stories that arrived at the state of “Done" in a given sprint (I will describe what story points are and how story points are obtained in a future post). Velocity enables the comparison of performance between sprints. So, if you implement changes in a Sprint, velocity provides you the possibility to measure if this modification brought a performance increase to the team comparing its velocity to the previous sprints’ velocity. Theoretically the velocity should have a slow but steady growth during the project. However you should consider that velocity is based on story points which measure the complexity of the user story and are estimated by the team. But the team perception of complexity varies throughout the project
  • Sprint burndown chart: it represents the evolution of work to do within the sprint. The x-axis represents the time (days of the sprint) and the y-axis represents the story points. The day 0 will have the number of story points that the team committed to in the sprint planning meeting. Each day you decrement the number of points that were completed until that day. Hopefully in the last day of the sprint you’ll have 0 points to complete, meaning that the team completed all the user stories that it has committed to. This chart enables the team to follow up the stories that were finished and those that, to this day, were not, giving a good idea if the team is inline with its forecast. Sometimes this chart also includes a straight line linking the point in the day 0 of the sprint (with the initial number of story points) to the last day of the sprint (with 0 points). The user story completion should follow, has close as possible, this straight line. If this is not the case, it may mean that, either the tasks/user stories should be broken down into granular pieces or that corrective measures should be applied
Besides these two metrics proposed by Scrum there are several others that also provide a good help on tracking the team performance and evolution. Here are two examples that I find interesting and that I already used in my professional activity:
  • Cumulative flow diagram: it allows the team to track the project evolution and to find bottlenecks. It shows the distribution of stories per state along the span of a project. The x-axis represents the time and the y-axis shows the number of stories. Each day you add all the stories in the system (organized per state) and represent them in the diagram. An ideal diagram would be a smooth growing set of lines or bands. If you find “bubbles” or “gaps” in any line or band, it means that you have a bottleneck somewhere: you must find it and correct it
  • Committed vs completed user stories: For each sprint, it measures the percentage of work completed related to the work that the team thought it would complete at the sprint planning. It gives the idea of team accomplishment and also the ability of the team to understand the requirements and predict its capabilities. In the other hand, we can also use this metric to take conclusions about the availability of relevant information or the quality of the user stories’ content at the sprint planning
There are much more metrics that can be used in Scrum (the imagination is your limit). The most important part is that the team must be aware of these metrics and should “believe" in them. Otherwise they will be ignored or even worse: cheated in order to achieve the objectives. You must also remember that you should always choose very carefully what you measure. The KPIs should be aligned with what you want to monitor and improve. If they are not, eventually you’ll end up to optimize what you measure and not what you want. So choose wisely and the results will bring the team’s success.

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...