Skip to content
All posts
4 min read

a true number can still give the wrong impression

My Roblox cards drop any live player count of zero and any visit total under 100,000. Both numbers are true. Rendering them would tell a visitor something false, so the thresholds live in the UI as constants and I treat them as editorial judgment rather than data.

RobloxEngineering

One constant in my Roblox hub decides what a visitor is allowed to see:

const VISITS_FLOOR = 100_000;

// A zero reads as "dead", not data. Show each stat only when it flatters.
const showVisits = !game.restricted && game.visits >= VISITS_FLOOR;
const showActive = !game.restricted && game.playing > 0;

A tracked game sitting at 40,000 lifetime visits gets a card with art, a genre chip, and a title. No numbers at all. The count is real, it is current to the last 60 second poll, and I throw it away before render.

That is not how I would treat the same figure in a spreadsheet. On a card, a stat is not a reading, it is a claim about the game, and readers do arithmetic I never asked for. Nobody sees "0 active" and thinks "no one happens to be in a server this minute". They think dead. Nobody sees 40,000 visits next to a sibling card reading 200M and learns a fact about the smaller game. They learn a ranking. The number goes in true and comes out as something else.

the zeros that are not zeros

The clearest case is the one where my own code produces a confident lie.

Roblox censors unavailable and unrated experiences out of the public games endpoint. Ask games.roblox.com/v1/games for one and you get a stub back with id 0 and the name "[TITLE UNAVAILABLE]". I still want those games tracked, so getRestrictedGameCard builds them from economy.roblox.com/v2/assets/{placeId}/details, which is not censored and still returns the real name and creator, and the thumbnail endpoints still serve the art. The one thing no endpoint gives me is playing and visits, so the card is constructed with both at literal 0 and the row is flagged restricted.

Rendering that faithfully would print "0 visits" and no live badge under a game that has neither of those properties. Every step was honest and the output is false. Restricted cards skip stats entirely and say "Unavailable on Roblox", which is the only accurate sentence available to me.

The same instinct shows up in the /links header pulse:

playing: hub?.live ? hub.totals.playing : null,

Everywhere else on the site a failed Roblox fetch falls back to the last good snapshot, because a counter that drops to zero during an upstream blip is worse than one that is a few minutes stale. That strip is the exception. Its figure sits under a pulsing dot beside the word online, and the dot is a claim about right now that a cached number cannot back. When live is false, the figure disappears instead of borrowing credibility from an animation.

two true numbers, one false impression

The case I find hardest to argue with is a number I cut for a reason that has nothing to do with its size. There is no cumulative plays figure in that pulse strip, and the comment above it says why: the tracked games sum would land next to the authored lifetime figure on the Roblox card and contradict it.

They measure different things. "1B+ lifetime plays" covers everything Pogi Games has shipped. The hub total sums only the universes currently sitting in the roblox_games table. Both are correct over different denominators, and side by side they do not read as two scopes. They read as one of them being wrong, and the visitor will believe the smaller one, because a live counter looks like evidence and authored copy looks like a bio.

the floor I can defend

Someone is going to call all of this spin, and the comment I actually committed says "show each stat only when it flatters", which is not a phrase you write while purely serving the reader.

My defense is the shape of the rule rather than the motive behind it: the only lever is show or do not show. Nothing gets rounded up, because compact formatting is Intl.NumberFormat with notation: "compact" and one decimal place, so 1,240,000 renders as 1.2M and never as "over 1.5M". Nothing gets relabeled, because visits is Roblox's cumulative play count rather than unique users, a distinction written into the client's header comment, and every surface says visits or plays and never players. Nothing gets invented, because each figure on those cards came out of an endpoint a minute ago.

What keeps me honest is that the unflattering numbers are one auth boundary away rather than deleted. The admin hub manager renders every row as ${full(g.playing)} playing · ${compact(g.visits)} visits, restricted games included, real zeros and all, with an "Unavailable" badge next to the name. I open that list far more often than the public page. A floor I could not defend would be in front of me every time.

The part I would change is the duplication. playing > 0 is written out in four separate files: the hub grid, the games portfolio, the projects index filter, and the /links auto sections. That is one editorial decision copy pasted four times, carrying no name and no comment in three of them. VISITS_FLOOR at least announces itself as a judgment call. The zero rule is disguised as a null check, which is exactly how a judgment call stops getting reviewed.

Remiel Shirazi

CTO & Co-founder | AI, Roblox & Piano