3 ms·
> maxphysaddr is almost an example in my mind of how not to name things, in that it relies on abbreviation conventions that different programmers may not use co
by oneeyedpigeon 10y ago
> maxphysaddr is almost an example in my mind of how not to name things, in that it relies on abbreviation conventions that different programmers may not use consistently
Pike deals with this very issue in the article:
> np is just as mnemonic as nodepointer if you consistently use a naming convention from which np means ``node pointer'' is easily derived
- dwringer 10y agoI dealt with that very issue in my comment - "it relies on abbreviation conventions that different programmers may not use consistently". Different programmers at different times follow different conventions, no matter how overwhelmingly obvious they are at the time. Changing adds to the already huge burden of context switching.
- oneeyedpigeon 10y agoHow can you possibly account for that though? Different programmers speak different natural languages, yet most public codebases still use English. Certain terms will fall in and out of fashion over the course of time. Consistency within the project is the most important thing we can control.