On 12/17/25 20:10, c186282 wrote:
On 12/17/25 14:17, rbowman wrote:
On Wed, 17 Dec 2025 03:11:09 -0500, c186282 wrote:
Probably 50% of the text in my code - doesn't matter which lang - is
'comments'.
I looked at some of my code and it's pretty much comment free. There
are a
couple of .c files with comments that I reused from another project that
have somebody's comments.
I had a tendency to clone similar projects and inherit some code that I
could tweak so the final executable did one thing well. We had a
couple of
nightmares that originally did one thing well but for the next project
the
programmer said 'That's close to what I need. A few configuration values
here and there and it will work.' The next time around it got some more
configuration values to do something else. I have a Swiss Army knife I
found; it's in the junk drawer.
Well ... I'll better understand, and be able to mod, my
old programs better than you. I find 'excessive' commenting
anything BUT 'excessive'. I *enjoy* writing out the meaning
and implications of almost every step.
I comment *A LOT*. When I had to go back and revisit some very old code,
I wished I had commented more. I've almost never looked at a program and
said "I wish it had fewer comments."
--
https://mail.python.org/mailman3//lists/python-list.python.org