[Chicago-talk] humbling question

Richard Reina 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.  

Thanks again.

Richard





"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
variables".

-- 
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
http://mail.pm.org/mailman/listinfo/chicago-talk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20070919/be45f4e8/attachment-0002.html 


More information about the Chicago-talk mailing list