Although that makes me twitch immediately, because I've done that kind of thing too many times and later found I'd referred to the wrong one of those two names in one or two locations, and of course when they initially have the same value, no amount of debugging will spot it.
My standard example of this is 'always make a new puzzle-collection game default to a rectangular rather than square grid'. If you do all your early testing on the 10×10 setting, you'll never spot the bugs in which you absentmindedly wrote the wrong one of width and height. Test on 12×10 and you catch them much faster!
no subject
Date: 2018-09-25 04:38 pm (UTC)My standard example of this is 'always make a new puzzle-collection game default to a rectangular rather than square grid'. If you do all your early testing on the 10×10 setting, you'll never spot the bugs in which you absentmindedly wrote the wrong one of
width
andheight
. Test on 12×10 and you catch them much faster!