r/EngineeringManagers • u/tasubo • 5d ago
I think developer performance can be measured and I don't really get why this is so controversial
Every time I bring up measuring developer performance, someone tells me how useless PR counts are, how lines of code mean nothing and how software development is creative work that can't be measured.
I find the comparison with sales quite interesting. We track how many emails a salesperson sends, how many calls they make and eventually how many deals they close. Obviously, sending 100 emails doesn't make someone a good salesperson. But if someone hasn't closed a deal in months, wouldn't you want to know what they've been doing?
Why is it so different for developers?
In my experience, the best developers I've managed generally had good numbers too. They were good at breaking down tasks, getting their PRs merged and actually delivering what they said they would. There were exceptions, of course, but the correlation was there.
And yes, I know a PR changing two lines of code counts the same as one implementing an entire feature. I also know that some senior engineers spend half their time reviewing code and helping other developers. As a manager, you're supposed to know these things and take them into account.
If a developer has barely completed anything in the last month, I'd like to know why. Maybe they're dealing with a particularly nasty technical problem. Maybe they're blocked by another team. Or maybe they're genuinely underperforming. All three are possible.
What I don't understand is why the possibility of misinterpreting data is considered a good enough reason not to look at it at all.
I also suspect that some of the resistance to measurement comes down to accountability. We've romanticized software development quite a bit. A lot of the actual work is debugging, breaking down problems and getting things done. There are plenty of things in that process you can track.
Obviously firing someone because they didn't merge enough PRs would be stupid. But I don't see why making decisions based entirely on a manager's subjective impression of someone's performance would be any better.
•
u/qualityvote2 5d ago edited 5d ago
u/tasubo, your post does fit the subreddit!
20
u/talldean 5d ago
So, Meta has a system where senior staff fall into five archetypes, and performance reviews are done against people of matching archetypes.
One of those is "coding machine". They have many, many more PRs than anyone else.
One of those is "fixer". They have many many *fewer* PRs than anyone else.
The other three archetypes are in the middle, more or less. (Generalist, PM Hybrid, Subject Matter Expert).
The signal of "how much code they wrote" is dangerously broken without considering the working style of the person.
-----
That said, yeah, once you control for working style... looking for *outliers* on PRs is absolutely a useful signal. I've found that for *junior* engineers (and interns), they almost always also break into three modalities very easily.
- Wow, this person writes a lotta code. Double check it's useful, then see if I can unblock them to go faster still.
- This person writes an average amount of code. Cool, keep going.
- This person writes far less code than everyone else. Something is wrong, go help fix it or I'll have to manage them out later.
The thing I actually want to measure is "does this person usually deliver as discussed", but the code count lets me get to things I can help *sooner*, so I use the PR count as a way to fast-diagnose, and I use "did they deliver" in performance reviews.
18
u/AnnualReview2383 5d ago
Developer performance absolutely can be measured. Number of PRs or lines of code isn't how you measure it.
Performance metrics are tied to accomplishing business outcomes, which is going to be different for every project someone's working on.
7
u/roguetinkererllc 5d ago
It isn't so much that developer performance can't be measured. It's that the moment the dev learns about the metric by which they will be measured they will immediately pivot to gamify outcomes to fluff that metric to the detriment of everything else.
If you measure lines of code then a function that used to take 5 lines will now take 50 and become unreadable.
If you measure time at keyboard then I'm going to rig up a macro that randomly types keys.
If you measure commit count or PR count then I'm going to split small changes into artificial commits or pull requests.
If you measure tickets closed or story points per individual then I'm going to cherry pick easy tickets and rush through them.
3
u/bold_snowflake 5d ago
You're measuring what's easy, not what's right. For argument sake, let's assume you're not just fixated on PR count (I really hope you're not as that would be terrible) but instead looking at metrics such as DORA, they also don't directly indicate productivity, but rather health of delivery pipeline which generally does correlate with organizational performance.
5
u/Due_Ad_2994 5d ago
Bill Gates: "Measuring programming progress by lines of code is like measuring aircraft building progress by weight.
Sure, a pr isn't necessarily LOC but it is measuring volume. Which per the quote, is stupid.
5
u/_IsNull 5d ago
Closing 100x deals that’s worth a dollar isn’t more valuable than someone closing a single deal that’s worth 1 million.
Similarly what’s the business impact in $$?
I remember when coding represented less than 5% of my time and I had less than 5 PR a year. Bulk of the time were spent in meetings, architecture review and design etc.
2
u/Minute-Flan13 5d ago
I can inflate my lines of code and PR counts, essentially game the system.
Estimation works, if there's a uniform and accepted way to break down and estimate. Most estimation is by "feels". Overestimating and then delivering to the estimate is a great way to win yourself time. Often teams do this as a way to mitigate risk. Padding after padding after padding. Again, gaming the system. Push back is often arbitrary (say, 1/2). That leads to underestimation from above, and that leads to tech debt.
1
u/ZucchiniSky 5d ago
When people say "developer performance can't be measured", what they mean is that there are no hard metrics that can be used on their own to measure developer performance. A developer that writes more LOC is not innately more productive than a developer that writes less. There are many reasons why a more productive engineer might write fewer LOC than a less productive engineer; they might be spending more time on mentoring or system design than coding. Furthermore, the metric can be gamed easily; a developer can write their code in a way that maximizes LOC without delivering greater business outcomes.
This is in contrast to many other jobs. Many jobs exist solely to perform a specific task, so their productivity can be measured by how well they do that task. For example, someone working on a factory line building phones can have their productivity measured solely by how many phones they can build.
1
u/double-click 5d ago
It’s not that you can’t measure, it’s what people and business’ do with the measurement that’s the issue.
Any system can be gamed once people understand the proper behaviors.
1
u/moggofrog 5d ago
Unfortunately you're also assuming that the engineering manager will take things "they're supposed to know in to account". Many will just run the numbers and make judgements based on them, which means the incentive for engineers is to make the numbers do what looks good to the manager, not what the right thing is. Goodhart's Law states that "when a measure becomes a target, it ceases to be a good measure".
1
u/Eridrus 5d ago
The problem with managing to PRs/code alone is that it's a very easy metric to game.
It's a fine metric to look at, particularly for outliers to start digging deeper. But if you start rewarding/punishing people based on these, you'll see an increase in these metrics for the most unscrupulous folks and the measure will just become pure noise.
Even in sales, nobody tracks emails sent, because it has the same problem. If your sales team does cold calling, you do track number of dials done, but that is less easy to game (you actually have to use the tool to dial a number and talk to the person) and you still track things like conversion to qualified leads, which is the thing you actually care about for SDRs. And even, then you have to track conversion to actually closed deals to make sure that the SDRs don't just badger the sales people to mark their calls as qualified when they are not. And even for sales people, you have to track whether customers actually onboard and don't just sign, etc, etc.
1
u/madsuperpes 5d ago
Subjective perception is not the way to go of course. You need something feasible. Some sort of a set of numbers. While "Developer performance" remains immeasurable as it always has been... The best proxy I have seen: the dollar value of the impact of what they have shipped (or a proxy metric that backs up the impact). If that's one single line of code that saved the company $10 mln last month, so be it.
1
u/delphinius81 5d ago
There's no metric on its own to use to easily quantify things, as teams will have varying standards for quality / ticket size / pr size, etc. A first step would be to just standardize and make part of the top level culture what performance looks like. Gamification of performance metrics goes away when the eng culture isn't based around / allows it.
1
u/SeniorIdiot 5d ago
Goodhart's law.
Once people know PR count is being watched, PRs get smaller and more numerous, reviews get rubber-stamped, and the (invisible) unglamorous work stops. The metric doesn't just misread behaviour, it changes it. You might know that the senior engineer spends half her time reviewing. Your director, looking at the same chart in a calibration meeting, doesn't. Because numbers and metrics outlive the context they came with.
Then glue work disappears; facilitation, architecture, unblocking other people, and being the person who understands the whole system. That work is often the most valuable and it barely registers in these metrics, the invisible work we all do. You end up systematically undervalue the people who make everyone else's numbers look good. 😖
And I think that the sales comparison breaks the analogy exactly because a closed deal is an outcome. It's tied directly to the thing the business values and therefore hard to game. We also need to recognise that, even a sales person that has not closed a deal in a month, may have nothing to do with the person, and could be related to that market, customer types, etc. that the person is assigned.
E-mails and calls are the activity metrics, and everyone in sales knows not to judge people on those alone. And in software we really have no real equivalent of a "closed deal". The closest thing would be: "running in production, working as intended at a reasonable cost, and making the company money". Measuring PRs merged, tickets closed and lines changed, may seem obvious, but they are activity metrics, not outcomes.
I think that biggest risk is that the organisation learns which behaviour the metrics rewards. To quote Eliyahu Goldratt: "Tell me how you measure me, and I will tell you how I will behave." And I think I remember him adding something like "if you measure people in an illogical way, you shouldn't be surprised when they behave illogically".
https://dannorth.net/blog/the-worst-programmer/
PS. Sorry for the brain dump. I got triggered.
1
u/slava_imeshev 5d ago
First, you are absolutely right that engineering performance is a long-standing, poorly understood, and insufficiently developed topic.
TL;DR We need to replace performance metrics metrics with a normalized contribution vector.
Personally, I think this problem is driven by two major issues:
I think the key to the problem is that we, as an industry, haven't made enough of an effort to define the outcomes of developers' work and how those outcomes contribute to the company's mission and economic objectives.
And the underlying economics of that work may be closer to those of the excavator operator than we think.
The excavator operator gets paid, let's say, $100 per cubic yard, not because that cubic yard has some intrinsic economic value, but because that trench is part of a bigger whole. Let's say we need to build a plant or something, we have a budget, and part of that budget is the money we're willing to pay for the trench. That's the demand side of it.
And then there is the supply side. If there is a line of excavator operators competing for one trench, it may be $10 per cubic yard. If there is one excavator operator and 100 trenches, it may be $1,000 per cubic yard, especially if, without that trench, there is no plant.
The physical output is exactly the same in both cases, but its economic value is very different.
Metrics matter. You really want to measure cubic yards excavated by an excavator operator because that's a meaningful measure of their output. But you probably don't want to measure the number of patients treated by a doctor as the primary measure of performance. For many specialties, the number of patients whose health has improved may be a much better measure.
So, there is an important distinction between what we do (activity), what we produce (output), what we accomplish (outcome), and what that accomplishment is worth (value).
Demand, supply, and criticality are some of the key factors that determine the economic value of work. But if you keep thinking about developers' work, or more or less any work, there is also quality, timeliness, collaboration, security, organizational citizenship, and a few more dimensions that matter.
So, I would argue that the performance of a developer, or any other worker for that matter, can be represented as a multidimensional vector of contributions to the company's mission.
What I think we should do is define the dimensions of that vector, figure out how to measure them, and evaluate that vector against another vector representing the company's objectives and priorities. The relative weights of those contributions would depend on the company's economic context, including demand, supply, and criticality.
We can start by establishing some basic boundary conditions for such a model. No contribution at all - the contribution vector is zero, and the performance score is zero. All contribution dimensions at their maximum - assuming nonnegative weights, the performance score is at its maximum.
Of course, it gets more interesting when we start thinking about how those dimensions interact. Can exceptional delivery speed compensate for poor quality? Can delivering millions of dollars in business value compensate for introducing a major security vulnerability? Can LOC be a dimension? Yes, just not a strong one, as in having a low weight.
But I think that's precisely the conversation we should be having. Rather than looking for a universal metric of engineering performance, we should be figuring out what constitutes a contribution vector, how to measure it, and how to determine its value in the context of the company's mission.
0
u/Substantial-Swan7065 5d ago
SWE are often dependent on external processes.
How much approved work is available, and what is not dependent on other tickets?
How long does qa/product/design approval take?
How long does it take to get it released?
These are out of an SWEs control. So what do you measure?
PRs: limited by number of tickets ready to work on / SWE on that team. Results in frivolous PRs
LOC: leads to generating massive PRs
Tickets: creates mixed incentives between functions
—-
The agreed upon metric is team velocity.
0
u/SeaManaenamah 5d ago
You just made a post about why this is a problem two weeks ago, "EM almost gave one of his best engineers a bad performance review"
What's up with that?