Re:Tips for naming variables
by babo on Wednesday May 13, 2009 @07:21AM
(#606737)
Stopped reading here: "Good example: daysFromDateRangeStartToEnd".
[ Parent
| on HN ]
Seems like the author didn't take his own advice - "2.- The variable name has to be as short as possible."
Hi babo,
you are absolutely right with your observation, that variable name its just a bad example, I have just edited the post and I have changed its name to daysDateRange.
Thanks for your feedback
Neither your original daysFromDateRangeStartToEnd nor daysDateRange seem to capture what it is supposed to represent. Perhaps if it was seen in context, it would be understandable, but by itself I do not think it is a good example.