Yves wrote:

> Well, that is not entirely correct. Some /are/ full blown programs.

*Those* I do try to always my() or our() or state() or sometimes
even local(), which is indeed appropriate in places:

    use Carp qw< :DEFAULT cluck >;

    if (something_or_other) {
        local $SIG{__WARN__} = sub { cluck "untrapped warning explanation" };
        local $^W = 1;
        call_something_else();
    }  
    # local()s pop once that last closing brace is done


It's the isolated snippets like the zillion I last night pointed out in
perlfunc where I feel all the declaration detracts from the point.

If you believe that every possible example in Perl needs to be fully
declared, than by all means do so.  But make sure you always start every
snippet with

    #!/usr/bin/env perl -CLA
    use 5.010;
    use utf8;
    use strict;
    use autodie;
    use warnings qw<FATAL all>;
    use open qw<IO :utf8 :std>;
    END { close STDOUT }

or whatever boilerplate is currently considered 
de rigeur by all those trendy mODERN pERL people.

Can you truly argue that that would *help* everything?

 *  If so, what? 

 *  If not, then what is all the fuss about?

>> But I guess the general population is dumbing down in at an
>> alarming rate.

> Whatever. :-)

I'm with Abigail on this.  I was taught not to assume one's
audience is full of idiots.  That doesn't mean to be overly
clever, just not talk to down to them.  

This is no longer Convention Wisdom.  Now you must assume
that nobody has an iota of a clue.

While this may work for certain sorts of presentations, I 
believe it is at most approprate only at the initial stage
of language acquisition.

But it seems now that we are expected to treat people like
babies their whole lives long.  

Isn't that what the argument really is here?

I feel like there is a certain contingent that holds Perl::Critic as
some sort of holy scripture, golden^Wclay tablets full of Biblical
injunctions that we must all slavishly follow if we are to be good
little perlians and see the good programming medal bestowed upon us.

As you see, I disbelieve.  Utterly.

--tom

PS: Yves, you have written more than I have currently processed.
    That doesn't mean I agree or disagree, just that I haven't
    processed it yet.  I may do so later if it really seems
    deserving.

Reply via email to