Stijn Rensen wrote:What would you suggest in this case? The goal of the method is to construct a string that will tell you the the next date of a given date.
Well, when you see variables:
nextDay,
nextDate you should agree, that is rather confusing, no matter what the goal of the method is. If you saying that the
goal of the method is to construct a string.. why not to rename "nextDate" > "nextDateString" or even "goal" (it would be better in this case), so it would be easier to distinct them from each other. The main idea from me was, do not choose variable names which looks very similar as it is very easy to use wrong one.
Well, you need some own experience of it by trying to find mistake, you'd know what I mean.