On 14/09/2011 21:30, Uri Guttman wrote:

Uri we are all privileged with your thoughts on variable naming. My last
attempt to say that perhaps you weren't always right wrong resulted in a
personal attack saying "you had that blowup a few months ago. are you
doing that again?" Given that you choose not even to punctuate American
English properly I find your position less than convincing.

again, you attack personally and not about the topic.

"you had that blowup..." was less than topical :/

(Or are you talking about your poor English, which is no more personal than your poor Perl naming requirements?)

Also, as I posted before, if you forbid even the very minimum of $i, $n,
$x, $y, $z, $h, $m, $s then your advice is destructive bigotry.

i said $i and $j are generally fine. in some cases maybe $x and $y. but
those are not nearly as many vars as all the others. the vast majority
of vars should not be named with single letter names. it is a rule with
some exceptions. i prefer to emphasize the rule here in order for
newbies to learn that picking good names is important. and single letter
var names are in general a poor choice.

If your intention is to insist on meaningful identifiers then I am with
you wholeheartedly, but rejecting single-character names is a crude
filter than has a lot of obvious exceptions. As yet another example,
quadratic equations are far from rare in practice, so would you really
have me rewrite the following?

  sub quad_roots {

    my ($a, $b, $c) = @_;

    my $desc = $b * $b - 4 * $a * $c;
    return if $desc < 0;

    $desc = sqrt $desc;
    return (-$b + $root_desc) / (2 * $a), (-$b - $root_desc) / (2 * $a);
  }

 Please cease.

nah, you first! :)

I wanted you to stop setting up rules here without saying that they are
your own fabrication. I think you are misleading the beginners here by
implying that the laws you lay down are accepted practice.

What is it that you would have me cease, apart from disagreeing with you?

Rob

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to