Re: Multiple Classes per File and use
- From: Uri Guttman <uri@xxxxxxxxxxxxxxx>
- Date: Thu, 08 Feb 2007 21:32:34 -0500
"MD" == Michele Dondi <bik.mido@xxxxxxxxxxxxx> writes:
MD> On Thu, 08 Feb 2007 12:56:45 -0500, Uri Guttman <uri@xxxxxxxxxxxxxxx>
MD> wrote:
>> i wouldn't call it controversial or flame baiting. you can disagree with
>> it but most style guides (PBP included) recommend named variables
>> whenever possible. sure it is a style issue but i am a strong advocate
>> of named variables as part of an overall style. and i emphasize choosing
>> quality names which makes it work even better.
MD> Well, PBP (and Perl::Critic) is somewhat controversial too. Some
MD> knowledgeable and respectful Perl hackers beg to differ on some
MD> specific points.
i was one of the tech editors of PBP and i disagree with many
points. but i do agree on using names vars where possible (some
exceptions do apply). damian explicitly states that PBP is meant to be a
possible set of rules and not an absolute set. you can pick and choose
and make up your own but consistancy in style is the goal, not a
particular style. and you should have at least a reason why any style
point is chosen and not some random default reason. good style has logic
behind it that defends it. i say named vars make the code more
readable as names help document what is being worked upon vs $_ which
has no such benefit. $_ can be set far enough away as to make it harder
to track its meaning. it can also cause action at a distance as it is a
global (though it can be localized by for or explicitly). just having
named vars be lexicals is a win too.
uri
--
Uri Guttman ------ uri@xxxxxxxxxxxxxxx -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
.
- References:
- OO Perl Online Learning
- From: Xiong Changnian
- Re: OO Perl Online Learning
- From: xhoster
- Multiple Classes per File and use (was: OO Perl...)
- From: Xiong Changnian
- Re: Multiple Classes per File and use (was: OO Perl...)
- From: xhoster
- Re: Multiple Classes per File and use (was: OO Perl...)
- From: Xiong Changnian
- Re: Multiple Classes per File and use
- From: Uri Guttman
- Re: Multiple Classes per File and use
- From: Uri Guttman
- OO Perl Online Learning
- Prev by Date: FAQ 4.26 How do I reformat a paragraph?
- Next by Date: new module Gimp::ScriptFu::Client appropriate namespace ?
- Previous by thread: Re: Multiple Classes per File and use
- Next by thread: Re: OO Perl Online Learning
- Index(es):
Relevant Pages
|