News for hackers. Stuff that matters.
Re:Tips for naming variables by babo on Wednesday May 13, 2009 @07:21AM (#606737)
Stopped reading here: "Good example: daysFromDateRangeStartToEnd".
Re:Tips for naming variables by mrduncan on Wednesday May 13, 2009 @08:09AM (#606761)
Seems like the author didn't take his own advice - "2.- The variable name has to be as short as possible."
Re:Tips for naming variables by albertoG on Wednesday May 13, 2009 @08:31AM (#606786)
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

Re:Tips for naming variables by pwim on Wednesday May 13, 2009 @09:38AM (#606855)
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.