[Chicago-talk] humbling question
richard at rushlogistics.com
Wed Sep 19 09:49:10 PDT 2007
Thank you very much for all the great suggestions. I fixed the program with Brian's suggestion as it seemed to be the simplest solution. However, I am playing around with Ted's code, seems interesting.
"Randal L. Schwartz" <merlyn at stonehenge.com> wrote: >>>>> "Jim" == Jim Thomason writes:
Jim> Terseness != clarity. I think this'd add work for the maintenance
Jim> programmer. Less time to add a new variable in two places than figure
Jim> out what this is, if they don't know.
Well, what you're up against is "repetition != clarity" either.
If I saw nine variable names, then repeated two lines later, I'd
not be sure without close scrutiny that those are the same names.
But with my construct, it's "don't repeat yourself", and it's very clear
that I'm creating these specific variables.
I might also put a comment there that says "declare and use the
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Chicago-talk mailing list
Chicago-talk at pm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Chicago-talk