develooper Front page | perl.perl5.porters | Postings from July 2011

Re: [PATCH] [DOCS] Modernize perlopentut.pod

Thread Previous | Thread Next
From:
Greg Lindahl
Date:
July 18, 2011 14:01
Subject:
Re: [PATCH] [DOCS] Modernize perlopentut.pod
Message ID:
20110718210142.GE9221@bx9.net
On Mon, Jul 18, 2011 at 04:36:38PM -0400, David Golden wrote:

> People will encounter 2-arg open in the wild in other people's code.
> For a tutorial, it's important to teach what else people might see
> (and why not to blindly start using that same style).

We train a large fraction of our new employees to use perl. We don't
use any of the perl beginner documentation for the initial training
because it teaches them things that we don't have and don't want in
our code. In this particular example, I think the ideal would be to
start with lots of 3-arg opens and variables as filehandles, and then
mention that 2-arg open and FH exists. That is, the reverse of the
current.

Even if I was training people to work on legacy code, I would begin
by teaching them modern perl.

I know that any language with a TMTOWTDI philosophy and a long history
is going to have conflict over what's appropriate for beginner
teaching materials. I'm glad that there are books we can buy that we
think are good.

-- greg
(perl user since, uh, '88, '89?)



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About