Skip to content

Topic

Hardcoded constants

Literal values written directly into source code, such as row limits, timeouts and buffer sizes, which keep working until the conditions they assumed change.

Current clusters

build1 publisher

Hardcoded .limit(80) query silently hid 31 published articles

The rows were present and published, but the front end fetched only the first 80 of 111 posts, and every category count agreed with it because the counts were computed from the articles already loaded. The repair took two deploys the same day.

Publishers:dev.to

Reality

Evidence58
Adoption10
Hype gap+8
Incentives35
Confidence55