On Dec 12, 2003, at 10:29 AM, Rob Dixon wrote:
Tom Kinzer wrote:

as a matter of style, i think always having them is nice for maintenance/readability.

I may be wrong, but I think most Perl programmers would disagree.
[..]

( (start flame)
        ( rob you spawn of (under nice) who (hates roundies))
        ( where Is your (respect (true(coding))) standards)
  (end flame)
)

There are clear and compelling reasons why from
time to time one will see inside a perl module,
away from the light of day, and innocents, such
things as

        sub fongule
        {
                my $fongul = $_[0]->method_name($_[1]);
                ....
                $retval;
        }

but I think that as a Sobriety Moment, and just
good basic practice it is best to leave the general
Dark Side Of Perl where we found it.

First we need to get persons new to perl to feel
safe and at home with how basically just like any
regular programming language Perl seems to be. That
they can create functions/methods - even void functions
of the form

do_something();

this way they will move into the process of writing
reasonably maintainable code that will be easy for
them to manage. They will be able to make rational
enough choices about general code maintainability
noticing that as they feel at home with basic

sub do_something { ... }

that it is a simple step into creating perl modules
of their own that are easy to maintain as merely
a stack of functionality, with or without blessing
the reference.

This needs to be done to lull them into a false sense
of safety before we start Ripping their Heads off with
Completely wack Job solutions like:

 Render_Page({ $main_display => \&ManageCache ,
        cache_off   => \&cache_off   ,
        cache_reset => \&cache_reset ,
        cache_on    => \&cache_on    ,
        cache_clear => \&cache_clear ,
        cache_rm    => \&cache_rm    ,
        cache_print => \&cache_print
  }, $main_display, $title);

The days of the Elder Gods are coming, you know that,
I know that, there is no reason to scare the newbies
with the whole relationship of the kult of kthulu that
is at the Heart of Darkness of Perl...

ciao
drieux

---

"You can have My Prolog Compiler!
when You Rip It From My Cold Dead Hand!"
- (drieux (still in (therapy(issues(resolving(attack(roundies(make angst))))))))



-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to