Sujet : Re: Can't Avoid That Shit Rust - Even On Gentoo
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.linux.advocacy comp.os.linux.miscDate : 30. Sep 2024, 07:03:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vddevg$24fps$4@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Pan/0.160 (Toresk; )
On Mon, 30 Sep 2024 05:52:35 GMT, Charlie Gibbs wrote:
Be generous with comments ... [etc etc]
... and remember they’re supposed to explain *why* the code does
something, not just repeat *what* it does.
You’re talking to someone who has code in his collection going back over
40 years. I learned the lessons of comments long ago.
Fun fact: I was reworking an old perpetual-calendar program I first wrote
back in 1980, to use Fortran 90, a few months ago. And I found a bug in my
algorithm that never showed up in any years from the 20th century, but did
manifest itself in the 21st century.