Re: Multiple Classes per File and use



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



Relevant Pages

  • Re: Subroutine doesnt write to file
    ... >> printing PP> to a fh and when you are printing to STDOUT. ... PP> Where did I say PBP was always right? ... clearly PP> people who disagree with you, ... Deletionists delete Wikipedia articles that they consider lame. ...
    (perl.beginners)
  • Re: Subroutine doesnt write to file
    ... indirect method calls are just fugly in perl and can cause problems ... PP> Where did I say PBP was always right? ... PP> people who disagree with you, ...
    (perl.beginners)