r/EngineeringManagers • • 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.

0 Upvotes

36 comments sorted by

•

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.

10

u/bluedevilzn 5d ago

This engineering manager OP clearly works at a company where the highest level engineer is a senior.

What you’re saying in the first part will not resonate with them at all because they have not encountered the scope and problems that staff+ engineers solve.

4

u/talldean 5d ago

Got it, that's a great catch.

For places with *only* senior engineers, ignore the archetype, but be aware you may have a heavy hitter without a ton of pull requests. If someone is who everyone else goes to with the hardest problems, the nigh-impossible debugging tasks... they may land less code, but be doing things no one else can.

If someone who *isn't* a go-to is landing far less code than everyone else, yes, you have a problem.

I think "lines of code written" gets abused to stack-rank engineers, but it's not a precise signal. Still a *good* signal for where to look next, though.

1

u/t0astter 5d ago

So do you assess what archetype each engineer fits into and then measure them against how that archetype should perform?

4

u/Petaranax 5d ago

Until senior it usually doesn’t matter, they’re learning the game, grinding through the same problems and workloads. Once you hit senior you need to identify where they’re going and what they are, preferences, styles, and slowly figure out what success for them is. I’ve led literally all of the archetypes mentioned above, and some hybrids of those, and this very much resonates with my experience.

2

u/talldean 5d ago

In that system, for everyone up through staff engineer, no archetypes are allowed to apply.

For senior staff and principal, archetype is applied then you cross-compare.

For above-principal, there are so few of those they cross compare against everyone again.

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/EkoChamberKryptonite 5d ago edited 5d ago

"Performance metrics are tied to accomplishing business outcomes"

This is part of why developer performance is poorly measured. Tying dev performance to business outcomes that they do not control is one way to have misconstrued measurement metrics and one way to get the highly problematic dog-eat-dog, throw-teammates-under-the-bus, optimize-for-visibility-over-long-term-value cultures that is rampant in several FAANG orgs. Which subjectively, is part of why these orgs' software quality has deteriorated over the past few years as Conway's Law stays undefeated. Developer performance should be measured in developer effort and dev-centric outcomes and not whether it was released and had a big impact on the business as that latter part is out of control of the dev.

6

u/SgtPeanutButter_ 5d ago

Performance metrics are tied to accomplishing business outcomes,

This is how you measure the performance of an engineering organization as a whole and it's management, but it's not how you measure individual developer productivity. The vast majority of what falls under "business outcomes" is far outside of the control of an individual developer. This is especially true as you get "lower down" the pole on developers.

4

u/ecco7815 5d ago

If each item is different, how can they be measured? The definition of a measurement is that you can directly compare one thing to a standard unit.

0

u/Comfortable-Power-71 5d ago

Yes and no. It boils down to lead and lag metrics. Lead metrics allow you to make changes and impact the outcome, which are the lag metrics. At the end of the quarter/cycle/plan you either hit the outcome or not and can’t do anything about it. PRs are useful signal, as some have mentioned, but not the end all be all. Look for outliers to know things are wrong OR if someone or some team is doing something that can be replicated. All this, of course, needs context. Juniors wont be as productive as more senior people and your more senior ICs (Lead, Staff, Principal) will have lower numbers because they’re helping and unblocking.

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.

1

u/delphinius81 5d ago

There was a part of my career as a staff eng where my performance was entirely tied to ensuring other people's PRs met approval and fit the larger system architecture before being merged. I had no individual PRs or lines of code.

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:

  1. A small number of simple, well-established metrics applicable to conveyor-style work are not applicable to developers' work. You can measure the output of an excavator operator in linear feet, cubic yards, or tons. No linear feet, cubic yards, or tons means no physical output. The same kind of simple metrics, such as LOC, don't work for development work because they don't translate linearly into business value. A one-line bug fix in production during peak season on an e-comm site may mean millions of dollars saved. And 1K LOC written during a routine dev process may hopefully be meeting expectations.
  2. Not measuring the performance of developers at all, as in "it's all art," doesn't work either because, anecdotally, we know that there are folks who kick butt and there are folks who are barely contributing.

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.

2

u/EkoChamberKryptonite 5d ago

Team velocity is a tad nebulous though as it is interpreted differently across orgs.

1

u/Substantial-Swan7065 4d ago

That’s the point. It’s not a metric. It’s capacity planning

1

u/bluedevilzn 5d ago edited 5d ago

Unless you’re a very junior engineer, you should not be encumbered by external processes. Even if you’re a very junior engineer, you should reach out to your manager and/or Tech Lead as soon as you’re blocked.

In my decade long career, I have never heard of a concept of “approved” work. I have never been at a company that did not have a backlog of things to do or engineers were not creative enough to figure out work on their own that’d improve any of the processes that you mention e.g. release cadence.

1

u/Substantial-Swan7065 4d ago

“Reach out when you’re blocked” - so the blocker is external. What are you talking about

Also you make it sound like engineers can do whatever they want.

1

u/bluedevilzn 3d ago

There’s no such thing as a blocker. That’s a very naive way to put things. The reason I ask my 35+ engineers to reach out to me asap is so that I can help them and the other engineer who’s “blocking” them figure out a solution to be unblocked. Sometimes, it’s a compromise on conflicting goals of two different teams. At other times, it’s cutting the scope.

Twiddling your thumbs while you’re blocked is never an option.

Also you make it sound like engineers can do whatever they want

I might have a very biased opinion here since I have only worked at multiple FAANG but yes, at least in big tech, engineers can absolutely do whatever engineering they want to do.

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?