On 12/12/22 4:34 PM, Dave Horsfall wrote:
My main job,
for the 20 years until I retired, was to keep telling
people that code that you wrote 6 months ago might as well have been
written by someone else. Optimize for reading the code, not writing the
code. It's read many.
I should clarify that on the odd occasion that I write obscure code it's
for efficiency, and I comment it well because *I* might be the one to
maintain it six months hence :-)
Six months? Try ten years. :-)
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet(a)case.edu
http://tiswww.cwru.edu/~chet/