Re:What science says about naming in programming
by TeMPOraL on Sunday January 08, 2017 @12:46PM
(#13350897)
Personally I have a habit of avoiding that, especially in dynamic languages, because a single typo could have nasty consequences there. So I always figure out a synonym, or use a name for the variable that's either more descriptive:
or at least visibly different:
[ Parent
| on HN ]
Re:What science says about naming in programming
by tomatsu on Monday January 09, 2017 @03:42AM
(#13354914)
The dynamic languages I primarily use are TypeScript and Dart. I always have enough type information floating around to catch this kind of thing. But even in JavaScript it wouldn't be much of an issue since it will instantly explode on the first run, which is certainly inconvenient, but nothing major.