4 ms·
the problem is the length of the variable/enum names. if they were shorter, the problem would be much more obvious - as it is the code is unreadable. the lengt
by zabzonk 4y ago
the problem is the length of the variable/enum names. if they were shorter, the problem would be much more obvious - as it is the code is unreadable.
the lengths of names of entities, in any programming language, should be related to their scope - small scope, small names. and as limiting scope is what you should be doing all the time, almost all names should be short.
also, unless you really know what you are doing, don't use leading underscores, or underscores in general, in c or c++.
here is something i wrote a while back, which admitedly does not too much address the single underscore issue: https://punchlet.wordpress.com/2009/12/01/letter-the-second/ https://punchlet.wordpress.com/2009/12/01/letter-the-second/