minus-squareTim@lemmy.timwaterhouse.comtoProgramming@programming.dev•A quick tip for better variable nameslinkfedilinkEnglisharrow-up2·1 year agoThe better fix is to try to use types that represent those units or data types (e.g. duration instead of ms). Makes it harder to accidentally use the wrong units and documents the code / intent better. linkfedilink
The better fix is to try to use types that represent those units or data types (e.g. duration instead of ms). Makes it harder to accidentally use the wrong units and documents the code / intent better.