I came across this question today, How to name variables with units?, which, I agree with the closure on this site. While I would find it difficult to edit this question to be within the scope of SO, this type of question is much more fitting on software engineering SE. However, I cannot flag for migration, as it was already closed.
Though other parts of the question ask for opinions, it essentially actually just asks:
"How can I add the unit to the code so I actually know what I am dealing with"
or
"In Java how can I incorporate units of measure in my code so the programmer knows the units being used?"
And indeed there are a few good answers there answering this very question. Again, I would agree that this type of question shouldn't be on stack overflow, but I don't think this question is that far away from being a pretty decent software engineering SE question, really there's only one phrase that makes it not fit (too opinionated):
"Should I name it like massInKg, even though it doesn't look good ?"
but this is clearly non-essential and can be re-phrased to show prior effort.