Closed danomatika closed 12 years ago
this is a good point. could you close this by putting a comment after these that says "in centimeters"? i think the only note of cm is in the implementation.
in retrospect, getDistanceCentimeters would have been a better name.
The name is fine. I don't think we need to go the obj-c route or anything, just need to know what we are getting.
I don't want to close this until we've gone through the code since there are a few more places as well. Best to avoid any confusion for newcomers.
Nice to see all the nice commenting going on ... :P
We are finally fixing this ...
I see a bunch of new functions etc that have been added here and there over time and no comments!
For instance, what do the following functions return? meters, mm, cm, km, float 0-1, ... ?
Sure, "self documented code" and all that, but in this case we need to know what we are getting back.
It dosen't take very much time to comment your work and helps the rest of us out. More and more people are using this addon and, so far, the headers are their only source of documentation.
As far as I'm concerned, an update isn't finished until its been commented and tested. Also, I find having to explain an addition in a sentence or 2 is a good usability test.