[Date Prev][Date Next][Thread Prev][Thread Next]
[Search]
[Date Index]
[Thread Index]
Re: [FWP] Drunk Driving redux (what was he thinking?)
At 13:55 -0500 6/24/99, Andy Lester wrote:
>> and I don't like "C++-style" mixed case variables, but that's personal
>>taste
>
> But in this case, it's wrong. "sz" prefixed means "null-terminated
> string", which is certainly not the case with Perl.
Ah. Ah ha! Thank you. I was wondering. It didn't seem to be anyone's
initials which was all I could think of. This was not a convention I was
shown in my brief exposure to C++.
Now I begin to understand the rest of the variable names in this code.
@aPathname is... an Array! (Wasn't the @ enough of a clue?)
$nHighestVersion is... a Number (I'm getting good at this :-)
$bTransferTags is... wait... I've got it. Boolean.
of course, then there's
%aPhdFiles (well, it's an associative Array; shouldn't it be
%aaPhdFiles? :)
sigh.
A C++ programmer. sigh. That explains a _lot_.
I suppose there is a certain logic to such a naming convention, but it's
sure not Perlish. I could be convinced to go along with n, b, and maybe s.
sz, as you say, is inappropriate here, and a is just plain silly.
I'm less convinced that this code qualifies as Fun and am leaning more
toward Pathos, but this one _is_ "homework". And I get to rewrite it ;-)
Onward and upward.
- V.
-- --
|\ _,,,---,,_ Vicki Brown <vlb@cfcl.com>
ZZZzz /,`.-'`' -. ;-;;,_ Journeyman Sourceror: Scripts & Philtres
|,4- ) )-,_. ,\ ( `'-' P.O. Box 1269 San Bruno CA 94066
'---''(_/--' `-'\_) http://www.cfcl.com/~vlb http://www.macperl.com
==== Want to unsubscribe from Fun With Perl?
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org