241 points · by lucasfcosta · 4y ago · 146 comments
This is a qualitative process, though, and using velocity metrics from your project management tools is like looking for your lost keys under the streetlamp because that's where the light is brightest.
It is also important to recognize the importance of keeping slack in a system and not over-optimizing it, as explained in Tom DeMarco's excellent book Slack: Getting Past Burnout, Busywork, and the Myth of Total Efficiency.
The problem with velocity isn’t poor metrics, the problem with velocity is it’s trying to measure a meaningless quantity.
I think the word choice of "velocity" indicates that its original intention was to have direction, otherwise it would be "speed" :).
What you're defining as velocity here is the exact 'micromanagement software tracking velocity metrics' that the parent comment is arguing against.
Velocity is probably more accurately thought of as the rate at which we can improve or create the right products for our business goals. But as the parent said, this is a qualitative and difficult to capture with metrics.
But to help clarify the point, if the project knew what was useless then people wouldn’t be working on it. Essentially, the team is defining useful work by what’s being worked on which robs the direction of any meaning.
When I hear such things I have the strong urge to factor in how lasting such solutions are.
A company that puts up 100 bridges a year of which 90 collapse within two years is a worse engineering company than one that puts up one a year that lasts for 50 years.
Velocity is important but I think it's an orthogonal concept to quantifying useful output. In my mind, velocity is how quickly developers are able to unblock themselves and overcome obstacles. It's very possible that people can have extremely high velocity working on pointless stuff but that's not what velocity is meant to track anyway.
that's exactly right, it's taking 2 dimensions (estimate and fitness of estimate) and quashing it down into 1 dimension, where you necessarily lose information.
It's a point in that it's an abstract idea that can represent an atom or a universe.
It's not useful for anything outside of the abstract.
^ 100% agree.
Tracking output metrics (including LOC, # of PRs, velocity points) doesn't help you identify or fix poor tooling, culture, or processes.
Metrics like cycle time get a little bit closer, but still fail to account for team context or surface root causes.
So what? The question isn't "what helps you fix everything?"
The question is "how useful is velocity?"...without qualification as how you quantified the values. Looking deeper, the question naturally progresses to "what is the most useful metric?" or even "what is a useful metric?" in determining performance (a scary thought experiment for most developers).
Narrowing the scope of the analysis is a necessary step in determining value. Let's dispense with the gaming numbers strawmen and refactoring and testing rigor etc etc.
Theoretically, if it's you (alone) on a project and you have no other external signals about how well features are valued, what singular value, over time, would you look at and judge your progress historically? This is the closest you can get to an abstract vision of (personal) performance on a project divested from all other concerns. I can always look at my LoC.
Particularly when a team has multiple projects, looking at each project's velocity helps you see if you're smoothly building out new features, getting bogged down, distracted by bugs in an old project, consistently underestimating the effort required for all things, etc.
It's a terrible target, not good for evaluation, but a handy metric for a PM to quietly check and use to make sure things are proceeding smoothly. The PM should probably know by other means but no one is perfect.
That's not just a poor analogy but wrong. I can't even start to identify what aspect of velocity is the key and the street lamp or searching. Velocity is a tool to assess the amount of work you do per cycle and to help plan how much work to take in a given cycle.
It has nothing to do with losing key,, searching or only looking where there is light.
As usual, for any process, haters will just trade jabs and nod appreciatively and how much it all suck. Assessing how much work you team does every cycle is a useful metric, and people higher up like to have at least a small glimpse of how much work and and much time it will take to finish a feature.
One useless metric though, is snark.
I am curious if you also track UNPLANNED WORK.
The reason I ask is because in my experience a VELOCITY metric is in fact useless without also tracking PLANNED vs. UNPLANNED work. I am hoping you say "Yes, we track that".
BTW I thought the metaphor was quite appropriate (and hardly snarky -- not sure why you read that into it).
Tasks vary drastically from project to project,including due to varying requirements, ambient software environment, technological changes and a host of other factors. Metrics are a way for project managers to pass the buck on to the engineering teams and nothing more.
Unfortunately what everyone forgets is that historical information only applies if you are doing "a thing" that is similar to what you've done before.
There's a fog of uncertainty that gets impenetrable past a certain time horizon. We need businesses that are capable of forging ahead into the unknown, being honest about the level of confidence given our knowledge at the time. I don't see that approach coming out of MBA schools, and I think Elon's approach is in marked contrast to that.
In many ways old school grassroots agile has penetrated the lower levels of the org (to some degree), but the upper levels haven't changed in decades, and this impedance mismatch is most visible in the rigidity of planning (which is also forced on them by outside pressures).
A: what is your budget? What other work will you sacrifice?
Code (implementation) is an integral alert part of the software design and planning process, and you can’t know how long something will take until that’s complete.
While estimation seems to be a shibboleth of certain types of project management, the fact that implementation time estimates are rarely accurate - and often significantly wrong - suggests that they are not as vital as we’re lead to believe.
I disagree with your conclusion. Just because we're terrible at estimating doesn't mean it's not important.
"100% uptime is rarely achieved, which means it's unnecessary and unimportant".
> Code (implementation) is an integral alert part of the software design and planning process, and you can’t know how long something will take until that’s complete.
McConnel talks about it in "Software Estimation". The only way to accurately predict anything is to base it on your previous experience, which I allude to. Unfortunately (or fortunately, depending on how you look at it), even projects that looks similar on the surface are more frequently dissimilar than similar.
Regardless it's useful to be able to answer the "how long" question at least a coarse level to see if it's worth doing something.
Similarly, managing a product team is also managing a running system; that system is just made up of meat sacks whacking plastic buttons with their bony protrusions, rather than computers humming away in data centers. A product manager still needs to quantify that the system making that product is working correctly, and metrics are essential. Otherwise you will only be guessing as to how the system is working, and those guesses will be much more haphazard as the system grows.
The metrics “work,” in that they’ll go up, but the things you don’t measure will get worse, often (eventually) catastrophically.
In the case of velocity, you’ll get people taking shortcuts and sacrificing quality, both internal and external, so they can juice their numbers. The outcome is technical debt and arguments about what it means for something to be done, resulting in slower progress overall.
Source: I’ve been consulting in this space for a few decades now, and have seen the consequences of using velocity as a performance measure time and time again.
(Other metrics are just as bad. See Robert Austin, Measuring and Managing Performance in Organizations, for an explanation of why knowledge work like software development is incompletely measurable and thus subject to measurement dysfunction.)
Metrics are great to diagnose the overall process and get a sense of what's going on that can be superior to our qualitative feels about it.
And metrics can also spot an occasional outlier or performance problem. Used sparingly, this does not encourage juicing the numbers.
Anyone who's built software knows that estimates are guesses and are bound to change once the work actually begins (not to mention if scope changes midway through).
Additionally, velocity does not "count" work happening outside of tickets, e.g., helping with a customer support issue, assisting another developer with legacy code, reviewing other people's work, spending time on feature planning.
Your capacity is adjusted accordingly. In my team an engineer who's going to work-on production support, would not have his capacity accounted. Similarly, if an engineer has a lot of cross-team work going-on then we'll reduce his capacity as well, and so on.
I’ll bet $5 that people conform to your model by working longer than necessary and your “velocity” is considerably lower than it could be, despite being measurably consistent.
But this does not look like engineering; looks more like statistic process control applied to software dev
Not engineering!
For better or for worse, though, most of the modern software industry has converged on "software engineering" as the name for what they do, while terms like "web developer" usually invoke spooky prehistoric (20th-century) connotations of companies that treat software as "part of the IT department" and a "cost center."
Now everyone is a tech/dev advocate because they have 500+ linkedin connections and repost the same cloud news everyone has already read.
I'm just going to coin the next stupid title now, 'cloud astronaut', they're so good they're beyond the cloud. That will fill the blank void that is your ego. You're welcome.
I’ll consider adapting the title, but not sure whether folks would grasp my intent as quickly
Velocity has a strong definition in engineering that has been borrowed and misused in software management.
I expected the article to be about accelerometers and how the ill effects of vibration have been mitigated
as a software engineer, I really apprecaite this.
> about accelerometers and how the ill effects of vibration have been mitigated
I really hope I can mitigate vibrations of mood, esp the procrastinatory kinds. But then I don't want to over-"engineer" my behaviours or it would start to become existential. Like sometimes I don't even know what is meaningful anymore (despite working on my dream job), or if I can truly humanly love myself. Being human is tough.
Of course, it's not engineering; it's all about metrics, which are statistical
This statement FTA is completely antithetical to agile development:
"A manager who wishes to make their team’s cycle times more uniform can try matching the rate at which tasks enter the system to the rate at which they leave."
On an agile team, "the manager" doesn't moderate the work rate; rather, the team measures their own work rate (approximately) via velocity and manages themselves accordingly.
It's nice in theory. Usually once these metrics exist, PMs and other managers get a hold of them, and they always seem to turn into hard deadlines or interpreted as predictions with high certainty.
You could certainly think of the sprint board as a kanban board with a finite lifespan, but I don't think there's any benefit to doing so.
By keeping the backlog prioritized at all times, and pulling from the backlog instead of a 'sprint backlog' - it avoids priority inversions. Planning what will be your highest priority, that possibly changes mid-sprint, is a priority inversion.
Kanban works well in all situations where sprints work well. Instead of trying to predict in a planning, you just do the work instead. Any predictions are still the same based on looking at historical data and comparing to the backlog, just less waste involved and less subterfuge to try and get developers to work overtime (I'm not aware of any sprint planning that really takes into account error bars, so the prediction/planning is BS & management planning porn, nothing more)
Kanban is an alternative to sprints, ...
Agreed. ... for contexts in which the team is persistent across projects
and it makes sense to let them manage their work apart from the
projects that they contribute
Here I disagree only in applicability. Kanban can be successfully used in a single development project if the team maintains prioritized tasks based on risk and/or dependencies. To wit, a development team with sufficient maturity can identify and plan their work, address same in the requisite order, and have confidence that the probability of success will increase as each task is completed.Sometimes the easiest thing to do is not the best thing to do.
Car 1 takes 15 hours to drive from A to B. Car 2 takes 10 hours.
Why is that? Well, car 1 has a 1.3l engine and took a wrong turn because the navigator can't read a map.
Car 2 stopped 3 hours in because it had a flat, but they got going again much faster.
The speedometer won't tell you any of those things. It can't tell you WHY you're going slowly (you're under-resourced or you have a problem that needs fixing) or if you're going the wrong direction.
That doesn't mean it's useless. It can still tell you if there's a problem, or if you appear to be doing well but you're not making any progress, maybe you're going the wrong way.
For starters, tasks require deep knowledge of how something will be done. In our industry, a lot of the work is discovered while executing some other work. What you get are tasks being created while other tasks are being worked on. This back flow of work would also have to be captured as part of the process with the additional metric of how well we plan our work and hold people accountable to that result.
Since software engineering is part art, industrial processes are inadequate in capturing the productivity of software engineering work. Instead, a lot of focus is on the ability to estimate overall completion dates, adherence to that schedule (often requiring evaluation of compromise and reduction of scope), and the impact of that work (both positive in a measurable way, and negative in code debt and incidents).
What's unfortunate is that a lot of infrastructure work focuses on improving engineering cadence. Without the process described in this article, measuring productivity gains from introducing a new tool or technology can at best be measured using adjacent metrics (e.g. compile time, deploy time).
I hope one day we can reach the level of engineering rigor prior to execution described in this article, but I still believe that the nature of software engineering is that there will be a non-trivial amount of immeasurable effort that doesn't fit the model described in the article.
I will say that “velocity” is an extremely helpful concept at the level of the individual and small teams. With my trams I challenge each engineer to try and batch work into 2-4 hour chunks, with each chunk being labeled “1 point.” Thus if we have an ideal week there are theoretically 10 points of “velocity.” We also try to batch up meetings etc. and discount the coordination overhead from the plausible output, so maybe the theoretical ideal is lowered to 8-9 points. We all discuss and agree on that based on whatever overhead we can’t eliminate.
Then each engineer does their best to “call their shot” every week and say how much work they’ll finish. At the end of the week we compare their prediction against reality, using a burn-up chart as a visual aid to the flow of work. There’s no penalty for getting it wrong, just applause for nailing it, and always a discussion of what worked and what could have gone better.
Following this habit, I have consistently seen teams get much better at forecasting work into the future accurately. This ability to have a steady velocity and make reasonably accurate forecasts about how long things may take is extremely valuable and helps us align and coordinate efforts across many teams.
Managers like to think, if an engineer can do 1 point in 4 hours, then they should be able to do 2 points in 8 hours. But that's not how it works.
The average office worker is only productive for about [3 hours a day](https://www.vouchercloud.com/resources/office-worker-product...). The upper bound is [4-5 hours a day](https://www.washingtonpost.com/lifestyle/wellness/productivi...). More than that is unsustainable and leads to burnout.
This is why people prefer remote work. Seeing coworkers in person is nice, for sure. But management still assumes people work 8 hours a day, meaning office workers spend most of their day trapped in the office pretending to work, which is a huge waste of time.
Also don't underestimate how many shallow tasks there are that somebody has to do to keep the lights on. We try and eliminate as many of these as we can, but it's just not cost effective to eliminate the entire long tail. So it's pretty common to have the morning focus session be true "deep work," and the afternoon session be a batch of minor stuff like small bug fixes, updating dependencies, running some tests, etc.
- 3-4 hours of deep work
- 1-2 hours communication, in the form of meetings, emails, writing wikis, etc
- 1-2 hours teamwork, like CRs, impromptu whiteboarding, pair programming, etc
- 1 hour misc, like coffee breaks, bathroom breaks, walking between meetings, etc
I think a lot of managers fail to account for everything else employees have to do, so “four hours of deep work per day” doesn’t sound right… even if it is. Of course, a lot of managers also just push their team into working more than 8 hours per day.
Two questions, if you don't mind:
1. One of the biggest dangers of time-based estimation is the cultural danger around the "penalty for getting it wrong." It's got quite a lot of gravity to it, in my experience. Once there are time-based estimates for tiny bite-sized amounts of work, it's a hop-skip-jump to the toxicity of "holding people accountable for their commitments."
It sounds like you, as the team manager, are the one preventing this backslide. How do you think about maintaining a healthy culture around this when you go on vacation, get distracted, get promoted, etc?
2. What if a new discovery happens mid-week? Specifically, what if it's the kind of discovery that invalidates the current plan, so that finishing your "committed" work would be worthless (or actively negative) for the business?
It's easy to nail your estimations when you're operating at 1/3 your capacity, and you only ever meet but don't exceed the planned velocity.
I wonder if this also disincentives learning and innovation in the solution domain - because that would throw off all those estimates.
(2) When something unexpected comes in you flag it and report it to everyone so everyone knows the expectations are invalidated. This is super important! I can't even tell you how much easier it is for a PM or other stakeholder to handle learning on Tuesday that the plan is not going to work than showing up for a check-in the next Monday expecting to see some deliverable and only then learning that it's late. The goal is to communicate expectation changes as close to real-time as possible, which builds trust and also helps the non developers see how volatile and unpredictable development can be so they learn to believe you when you say "the range is 10 to 30 weeks, and no I can't narrow it down any more than that."
Two things are different to the XP approach. Firstly, you track expected work capacity at the level of individuals, rather than the whole team. Secondly, you use estimates of work capacity, rather than the "yesterday's weather" approach of assuming it will be the same as last week.
Do you think there are advantages to doing it your way?
Having never done XP I can't say if the differences are better, I can only say that this basic approach works pretty well :)
> Velocity metrics are as loathsome as the horoscope because neither provides any insight on why something went wrong or how to fix it.
Specifically, it assumes that there is that one metric out there than can answer the “why” and “how” questions.
In reality there is none, even your proposed CFD (which I use myself) doesn’t really answer them. Instead what these metrics do is answer the “what” question. Specifically, they signal to the team that something is wrong and they need to dig deeper to get to the bottom of it before arriving at a solution. In fact, one of your examples skips this very important step:
> A manager who wishes to make their team’s cycle times more uniform can try matching the rate at which tasks enter the system to the rate at which they leave.
How did the manager know that this was the correct solution. Perhaps they went further, asked questions, and maybe even consulted stakeholders instead of just looking at the CFD and go “Ah! I will control the arrival rate!”
This would’ve been the same with burnup/down charts provided that the user of these charts knows the probabilistic nature of these metrics.
In the end, it’s not the charts/metrics that matter the most but the person interpreting them.
Velocity seems like a simpler measure than a Network Queue, and both seem like they are valid measures since neither will have a linear relationship with the bottom line of the company.
The goal of the entire business is to tune all the parts of the business and seek out an efficient solution.
The theory of constraints as it is quoted in this article isn't advocating for rate matching everywhere in the business specifically. Rather it is making the statement that some inputs and processes in the business have a disproportionately large effect on the business outcomes. And you should weight management priority to the processes that affect your outcomes the most.
If you have a process (say deploys to production), that dramatically affects your business outcomes, in the sense that small changes to this process lead to large changes or even most of the changes in outcomes (e.g. revenue). Then most of the resources should be allocated to optimising that part of the business, since resources allocated anywhere else will be wasted, since the magnitude of the effects (even assuming they'll still be positive), will be dwarfed by your most sensitive inputs.
The theory of constraints preaches that after you have chosen your most important business outcomes (a strategic decision), you should measure how much the different inputs to your business affect the outputs of the business, and allocate resources to the most sensitive inputs.
Most big businesses do this very well. It's why you can find yourself in a team where doing more work or less work doesn't seem to matter, even though your direct manager is up your ass all the time.
The wikipedia link that you provided doesn't say this. It says:
"The kanban card is, in effect, a message that signals a depletion of product, parts, or inventory" https://en.wikipedia.org/wiki/Kanban#Kanban_(cards)
Which is quite different. The card is sent from the people who need the work to the people who deliver the work and not the other way around like you claim.
It's essentially a long term weather forecast. Don't plan your beach vacation for November; don't plan to launch Product Feature X before we could have it done. "Velocity" makes it sound like it's measuring your productivity now, but it's more of a general forecast of the future. And absolutely nobody should be looking at it but the PO.
- Points are a measure of time elapsed.
- Velocity between teams can be compared.
- Points between teams can be compared.
- Points are a unit of value.
- Velocity has meaning or utility outside of the team, scrum master, and product owner.
- Velocity measures or indicates individual productivity.
- Velocity needs improved.
Keep it simple, use it within your team to plan your next sprint and estimate when/what you can deliver.
And yet I still can hear some peanut gallery murmuring saying "Yeah, but, but..."
> Velocity metrics are as loathsome as the horoscope because neither provides any insight on why something went wrong or how to fix it.
This is such a weird statement to me. Of course it doesn't tell you why, it's just data. It's up to anyone that works with data to figure out what's going on.
Martin Fowler, who I had the pleasure to know back in the XP days, says:
“Agile Development is adaptive rather than predictive is people-oriented rather than process-oriented”
Reconcile that with agile as you understand and practice it - the entire point of measuring velocity is to be predictive. How on earth is that agile? How many process and planning oriented ceremonies do you go to? Does my empathetic listening approach sound more people oriented or OP’s “I’ll fire you if you aren’t burning down points” approach?
> Besides telling you that “velocity is low,” what else does a burndown chart reveal about your team’s bottlenecks, problems, and inefficiencies? Nothing.
I mean - it's good to know there's a problem (deadlines won't be met), right? It might not answer why, but it certainly allows you to ask why.
I'm also a little confused about what definition of velocity the article argues against while promoting a form of velocity called cycle time/avg cycle time; which seems to mesure how long tasks take to complete?
if your measure of velocity doesn't rate direction (i.e. 'quality of goal') as well as magnitude ('how quickly you are getting there'), at minimum it needs to be renamed
afaik most agile systems are pretty clear that cross team velocity is non-comparable. (if if teams are shuffled the velocity will change).
But, the one thing it's meant to be used for is estimates. After sufficient iterations of the loop a team should both have increasing velocity (due to knowledge of codebase), and increasing accuracy of estimates (both dialing into sprint point / effort tuning, and knowledge of codebase) .
afaik velocity was never meant to tell you about how to improve itself. Thats more for Retros. (retrospectives)
The velocity cannot keep on increasing forever :-)
Jokes aside, yes there is some asymptote of peak velocity that will reach. But keep in mind that some amount of effort can actually increase velocity in a net profitable way given long enough time windows... cue the table of automation from xkcd[1]. Imagine if we're playing with legos, and instead of using the smallest units I start to build with bigger blocks? I can build the same house by placing fewer blocks (analogy-- faster) .
Trying to model velocity as a "metric" also bakes in A LOT of assumptions. If the right cards aren't being created, or if the backlog isn't being prioritized correctly then what you are attempting to measure isn't even velocity (or at least not the specific velocity in the direction you ought to care about).
That was a fairly typical response, when I talked about having issues meeting deadlines. The Japanese did stuff like that, all the time, in hardware, but it didn't work, for software.
I have found that I am best off, trying to establish a structure that allows each engineer to work alone. That's difficult to do, when you have a complex, hybrid system. Usually, it meant lots of small tasks, with clear coupling and API specs.
If even one additional person is added, the whole thing slows down exponentially.
It’s predominantly recording point inflation over time.
Measuring things is hard. Most of the time when you measure something there will be a loss of information. Velocity, in the context of software engineering, is no exemption. However, this doesn't mean that it can't be a helpful signal.
I’ve been in “The room where it happened” a number of times, and this question just reveals that we have collectively forgotten what a burndown chart is for.
The point of a burndown chart is that management is asking the wrong questions, and you’re giving them something that looks like what they asked for but invites a bunch of uncomfortable questions later on. It’s insidious, in a useful way. What we’re trying to show is that wishy washy decisions - from management - keep moving the goal post and costing us hundreds of thousands of dollars. Potentially millions. It’s an up-management technique in the right - or even passingly competent - hands.
The mistake we made is in thinking that putting a mirror in front of somebody will lead them to improve. But what happens when you put a mirror in front of a narcissist? They thank you for your help getting that stray eyebrow hair to lay straight, and then change the subject.
I thought this would be about physics.
Is this currently being applied at your employer? Are you hiring? :-D