Useless blanket advice. Of course you should write meaningful comments.
In particular it's easy to require comments everywhere. It's a rule people don't have to think much about, and most linters will provide out of the box rules to flag methods and class variables without comments.
# remark on uselessness of blanket advice
Useless blanket advice. # remark on uselessness of blanket advice
if (!translation_db_connected) {
throw "Cannot connect to translation database";
}
check_permissions();
if (Date.week() % 4 === 0 && !is_admin()) {
echo_xf(i18n.monthly_maintenance_warning);
}
echo_bf(i18n.context_translate('remark458'));
check_dangling_block();
if (WM_API >= 7) {
nxptr_free(i18n.handle);
}
And suddenly the useless comment is the only thing that makes senseWell, nobody documented units in the file exchange documentation, so customer sent us weights in grams because that's how they stored it.
I have never seen code that was self-documented. It’s always a mess because the devs are too lazy to write comments.