Hacker News new | ask | show | jobs
by MrLeap 706 days ago
Here's a silly idea: take a sample of lines of code, for each line in the sample, remove the line. See how many tests fail as a result of the line being removed. shares++ to all users that come back with git blame entries on that line * how many tests fail when it's removed.

then normalize so all the users add up to 1, use that as your coefficient on disbursements.

Of course it's gameable, hopefully there's a BDFL to guard against test/commit stuffing or other bad faith things.

1 comments

This seems like it mostly tests whose code has the most test coverage, not which lines of code are most important?