4 ms·
So am I the only one who names my database columns like height_cm, speed_kmh, weight_kg
by somat 3y ago
So am I the only one who names my database columns like height_cm, speed_kmh, weight_kg
- deleted 3y ago[deleted]
- JohnBooty 3y agoNO! There are at least two of us! I've done this ever since NASA lost the Mars Climate Orbiter due to a unit conversion error. https://en.wikipedia.org/wiki/Mars_Climate_Orbiter#Cause_of_failure https://en.wikipedia.org/wiki/Mars_Climate_Orbiter#Cause_of_... I truly don't understand how and why people don't do this. Most people use pretty descriptive names now that every editor has autocomplete and big monitors are common. And yet, people never put the damn units in the identifier name. Would save so many bugs, and it would give engineers one less thing to juggle in their working memory.