atom feed57 messages in org.perl.advocacyRe: Thoughts on maintaining perl
FromSent OnAttachments
Horsley TomMay 25, 2000 10:31 am 
Chris NandorMay 25, 2000 10:53 am 
Peter ScottMay 25, 2000 11:07 am 
Horsley TomMay 25, 2000 11:27 am 
Steve LaneMay 25, 2000 11:47 am 
Chris NandorMay 25, 2000 11:57 am 
Ben_...@trepp.comMay 25, 2000 12:27 pm 
(Simon Cozens)May 25, 2000 12:30 pm 
Horsley TomMay 25, 2000 12:32 pm 
(Johan Vromans)May 25, 2000 12:44 pm 
Chris NandorMay 25, 2000 12:59 pm 
Elaine -HFB- AshtonMay 25, 2000 1:20 pm 
David H. AdlerMay 25, 2000 1:25 pm 
Peter ScottMay 25, 2000 1:34 pm 
Ben_...@trepp.comMay 25, 2000 2:03 pm 
Kurt D. StarsinicMay 25, 2000 2:14 pm 
Tom ChristiansenMay 25, 2000 2:33 pm 
Tom ChristiansenMay 25, 2000 2:41 pm 
Tom ChristiansenMay 25, 2000 2:42 pm 
Tom ChristiansenMay 25, 2000 2:44 pm 
Tom ChristiansenMay 25, 2000 2:46 pm 
Elaine -HFB- AshtonMay 25, 2000 3:13 pm 
Chris NandorMay 25, 2000 3:44 pm 
Tzadik and Sheva VanderhoofMay 25, 2000 7:13 pm 
RobertMay 25, 2000 10:54 pm 
Matt SergeantMay 26, 2000 12:21 am 
Horsley TomMay 26, 2000 4:05 am 
Peterson, JonathanMay 26, 2000 4:28 am 
Horsley TomMay 26, 2000 4:36 am 
Adam TuroffMay 26, 2000 4:52 am 
Chris NandorMay 26, 2000 5:14 am 
Elaine -HFB- AshtonMay 26, 2000 7:11 am 
Chris NandorMay 26, 2000 7:22 am 
Tom ChristiansenMay 26, 2000 8:01 am 
Dan SugalskiMay 26, 2000 8:20 am 
Matt SergeantMay 26, 2000 8:28 am 
David GroveMay 26, 2000 8:50 am 
Elaine -HFB- AshtonMay 26, 2000 8:57 am 
Chris NandorMay 26, 2000 9:31 am 
Adam TuroffMay 26, 2000 9:46 am 
Vanderhoof, TzadikMay 26, 2000 10:14 am 
Elaine -HFB- AshtonMay 26, 2000 6:20 pm 
'Elaine -HFB- Ashton'May 27, 2000 8:12 am 
David GroveMay 27, 2000 7:10 pm 
RobertMay 27, 2000 9:24 pm 
Elaine -HFB- AshtonMay 27, 2000 9:48 pm 
David GroveMay 28, 2000 12:40 am 
Elaine -HFB- AshtonMay 28, 2000 7:22 am 
Jonathan Scott DuffMay 28, 2000 7:00 pm 
RobertMay 28, 2000 8:03 pm 
Chip SalzenbergMay 29, 2000 7:49 pm 
Chip SalzenbergMay 29, 2000 7:59 pm 
Chip SalzenbergMay 29, 2000 8:06 pm 
Ask Bjoern HansenJun 3, 2000 9:00 am 
Uri GuttmanJun 7, 2000 9:32 am 
(Simon Cozens)Jun 7, 2000 5:13 pm 
Ask Bjoern HansenJun 19, 2000 1:09 pm 
Subject:Re: Thoughts on maintaining perl
From:David H. Adler (dh@panix.com)
Date:May 25, 2000 1:25:22 pm
List:org.perl.advocacy

On Thu, May 25, 2000 at 03:27:51PM -0400, Ben_@trepp.com wrote:

print join ",", map { &{$field_info{$_}{format}}($deal) } @fields;

It took me some time to figure out what that construct meant and where the actual formatting information was. His argument was that this was a perfectly fine thing to do. He did it all of the time, and it allowed you to separate presentation from content. He admitted that the first time you saw it, it looked a bit strange, but if you knew what it did...

That turned out to be a good lesson for me. This construct really was integral to his style, and once I got past the shock of that line it really was maintainable.

The question that springs to my mind is "was there a comment explaining this?" If not, would that have prevented it from "stopping you in your tracks"? Also, if not, hurt that man. :-)

It seems to me that if you have code that might look a bit obscure, but can be comprehended with little trouble if you know what it's *supposed* to do, then you *tell* people what it's supposed to do.

Again, not an issue with the language, but with the programmer.

*sprinkles IMHOs around to cover his tracks* :-)

dha