DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk3 min

I Built a Leaderboard to Compare How Much Code I Write With My Friends

A friends’ coding leaderboard is only as meaningful as its metric. Understand GitHub’s contribution rules, API caveats, time zones, and privacy before comparing activity.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A leaderboard can show how much code you and your friends produce only after you define what “how much” means. A count of commits, added lines, or contribution days measures a different kind of activity—and none, by itself, proves who is the most productive developer. If the project uses GitHub data, its results also depend on GitHub’s contribution rules, statistics API, time handling, and privacy settings.

What does the leaderboard count?

Start with the unit, not the ranking. A commit count measures submitted changes; an additions count measures lines added; and a deletions count measures lines removed. Those are not interchangeable. A person can make many small commits, while another makes one large change. A change that deletes code can be valuable even though it does not increase an additions tally.

As an Amazon Associate I earn from qualifying purchases.

The title alone does not establish the project’s platform, data source, counting logic, or date range. If the leaderboard uses GitHub, say so explicitly and tell readers which API fields it uses, what repositories it includes, and the period being compared. Do not label a result “code written” if it is actually a count of commits or contribution days.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What GitHub contribution data includes

GitHub contribution graphs do not count every action a person takes in every repository. For a commit to appear as a contribution, its author email must be associated with the user’s GitHub account, it must be in a standalone repository and an eligible branch, and the user must have a qualifying relationship with that repository. GitHub also may limit the issues, pull requests, and discussions shown on a profile. See GitHub’s profile contributions reference for the current rules.

Repository statistics offer distinct views. The weekly commit activity endpoint reports commit activity by week, while contributor activity includes additions, deletions, and commit counts. These figures answer different questions; name the endpoint and fields rather than treating them as a single generic “code” total. GitHub documents the endpoints and their behavior in its REST API repository statistics reference.

  • GitHub’s repository statistics exclude merge commits.
  • Contributor statistics also exclude empty commits.
  • For repositories with 10,000 or more commits, the contributor-activity endpoint returns zero for additions and deletions. That is an endpoint limitation, not evidence that no code changed.

Choose a fair time window and timezone

Specify whether the comparison covers a calendar week, a rolling seven days, or another interval. If the project groups activity by day, document its timezone and apply it consistently. GitHub uses the commit timestamp’s timezone for commits. For issues and pull requests opened on GitHub.com, it uses the browser’s timezone; for issues or pull requests created through the API, it uses the timestamp or timezone provided in the request. Events near midnight can therefore fall on different calendar days under different conventions.

Repository-statistics calculations are cached because they are expensive. An API request can return HTTP 202 when the statistics are not ready; GitHub starts a background calculation, so the caller should wait and retry rather than treat the response as a zero. The cache is keyed to the default branch SHA and resets when that branch is pushed. A leaderboard should account for these delays and avoid presenting an unfinished result as final.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Make the comparison private by consent

Public GitHub contributions can be seen by anyone who can access GitHub. If a user chooses to publicize private contributions, people without access to the underlying repositories see daily contribution counts, not specific contribution details. That still exposes activity patterns. Ask friends before displaying their activity, explain what is visible and to whom, and provide a way to opt out. Do not imply that a public count reveals private code or repository contents.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What the ranking can—and cannot—say

A code-volume leaderboard is a playful comparison of one chosen activity measure, not a complete measure of developer productivity. The SPACE framework considers satisfaction and well-being, performance, activity, communication and collaboration, and efficiency and flow. Its authors write: “Developer productivity is about more than an individual’s activity levels or the efficiency of the engineering systems relied on to ship software, and it cannot be measured by a single metric or dimension.” The framework was published by Nicole Forsgren, Margaret-Anne Storey, Chandra Maddila, Thomas Zimmermann, Brian Houck, and Jenna Butler in ACM Queue in February 2021: The SPACE of Developer Productivity.

Line counts can be affected by the nature of the work, including whether a project generates or reformats code. Whether a leaderboard filters such changes depends on its implementation; do not assume it does. Describe the measure plainly, avoid calling its winner the “most productive,” and treat the result as a conversation starter rather than a performance assessment.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.