> On Wed, 16 Dec 2009 17:47:16 -0600, Bryan R Harris wrote:
>>> Okay, here's one I struggle with often -- is one of these better than
>>> the other?
>>>
>>> **************************************
>>> A.
>>> if ( isFlat($tire) ) { changeTire($tire); }
>>>
>>> B.
>>> checkFlatAndChangeTireIfNecessary($tire);
>>>
>>> **************************************
>>
>> Ah, a recovering Java programmer :-)
>>
>> Seriously, the letsRunAsManyWordsAsPossibleTogether style bugs the
> heck
>> out of me. The Perlish style (perldoc perlstyle) would be
>
> There is one other question about B. that I haven't seen mentioned in
> this thread. There may be other reasons why you would change that tire.
> Would you really want it bound that tightly with CheckFlat() when you
> need to add them?
Ah, yes, that's the kind of advice I thought I was looking for with the
question.
I've been trying to generalize all this advice, but my previous message is
the closest I've come to it.
Thanks Bob.
- Bryan
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/