3 ms·
Agreed, names are the first line of documentation. Having endl flush is like using single letter variable names, but maybe a bit worse since single letter varia
by arcticbull 11y ago
Agreed, names are the first line of documentation. Having endl flush is like using single letter variable names, but maybe a bit worse since single letter variables make you go find where they were declared but this lulls you into a false sense of security.
This violated the principal of least surprise enough that someone made a 10 minute long video on it :) It's really hard to blame the user this time.
- smitherfield 11y agoPeople not using descriptive names for the important stuff is probably my number one pet peeve. We're not on a VAX, bytes aren't precious, and we aren't naming terminal commands, keystrokes aren't either. And nowadays every editor has autocomplete, so there's really no excuse.
- arcticbull 11y agoThe great vowel shortage of the late 80s is finally behind us :)