DEV Community

David Fang
David Fang

Posted on

A small habit that helps me avoid unit confusion

Unit confusion doesn’t usually show up as a clear mistake. It shows up as hesitation.
You pause, reread a sentence, and wonder whether the numbers actually make sense.

What helps me is doing a quick check early. I convert one value, just enough to understand the scale, and then I stop thinking about units altogether. That single confirmation saves me from constantly second-guessing myself later.

If I’m already working in the browser, I sometimes use something lightweight like https://mmtocm.net
for that one check. After that, I rely on context rather than repeated conversions.

Top comments (0)