3 ms·
sure but if the variable was not abbreviated the chance of collision would have been less.
by bryanrasmussen 10y ago
sure but if the variable was not abbreviated the chance of collision would have been less.
- brandonbloom 10y agoEven with a 200 character variable name, the chance of collision is 100% if it was auto-completed or copy-pasted.
- philosoft 10y agoAt a minimum, readable variables would have simplified identifying the issue after it was introduced.
- twblalock 10y agoMy point was that the abbreviation is not a problem per se. If there was not another variable with a similar name, it would not have mattered at all. This is an issue of names being similar. No matter how long a variable name is, if another variable name in the same namespace is superficially similar, this kind of thing can happen. On the other hand, if there are no other variables with similar names, then you can abbreviate all you want and your chance of collisions will not increase.