OhMyBug

config/deploy

Related Constants Defined Independently

#74rare12 sightingsfirst seen September 2026

What goes wrong

Two settings that must satisfy a relation (A must stay below B) are written as two independent hard-coded numbers, with nothing deriving one from the other or checking the relation. Editing either one alone silently breaks it.

Example

Connection pool size 50 and the database's connection limit of 40 live in different files; someone raises the pool and connections start failing.

Not to be confused with

Not a stale comment about sizing; the defect is that a coupling once derived (B = 2×A) has become two loose numbers — unlike One Knob Drives Two Budgets, where one setting is wrongly shared by two uses.

Discovered by

Field notes · 5