(Leetcode seems to be an awful predictor of how someone will perform as a software engineer. That students are spending so much time practicing for it, rather than experimenting and building things, is awful. Some of the biggest companies they're applying to were founded by students doing the opposite of practicing for someone else's hazing rituals -- they were experimenting and building.)
I 100% agree with you but it's not as easy and scaleable as it seems.
Interviewer training can help avoid that happening accidentally.
(And Leetcode interviews don't avoid the interviewer ego problem. It's purportedly "objective", but the interviewer can easily taint it, accidentally or intentionally. The answer isn't Leetcode, but to train or reign in egos, and then you can use a real conversation.)
So I added an hour's pair programming on either toy problems or our existing codebase, depending what was suitable at the time. No leetcode, no months of prep for candidates, and our interview outcomes were much better.
There's a massive gulf between toxic leetcode hoop-jumping and a friendly chat.
It's better compared to many other measures you might think of, though it's an interesting exercise to consider what might work better.
it's not a pseudo metric.
(source: I did some work for a litigation support/consulting firm, expert witnesses for defense contracting)
We might be talking past each other here, so please correct me if I'm wrong, but how does the example you presented address the argument that "lines of code produced are not a useful metric for evaluating individual developer performance at hiring time"?
Ideally we have this by code review, which should, theoretically, filter out the bullshit, but software development, as the original post in this thread says, may be overwhelmingly populated by bullshitters or people who honestly don't know their own lack of ability.
This is exaggerated by agism and completely discounting audited real experience over leetcode and small take home projects.
An experienced engineer with many products under their belt and tons of coaching of others on their track record will easily tell if someone knows what they're doing, especially if they get to pair program together for even 30 minutes.