Following up on Tim Bunce's April 1st suggestion that we implement
PLEAC (http://pleac.sourceforge.net/), I've gotten a few things started
in examples/pleac, but I think it's time to step back and think
seriously about how to organize this stuff.
pleac will essentially be a Perl6 Cookbook modeled after the second
edition Perl Cookbook. I've laid out a directory and filename
structure/format that will make it very easy to look things up and I've
added a few sample programs, but I realize that there are a few issues
with my approach.
1. I stop coding a particular bit when I hit a bug in Pugs.
2. Perl6 is more expressive than Perl5 and I rather think the Perl5
recipes are limiting.
Here's what I'm asking:
1. Should we just write out full examples, even if Pugs won't compile
'em? Seems more sensible to me.
2. POD docs? Does it matter?
3. Add recipes that more accurately reflect Perl6's strengths? That
goes beyond pleac, but I'd much rather see this as a resource that Perl
programmers can really rely on.
4. Are the filenames portable?
(examples/pleac/05hashes/05-05traversing.p6)
Regarding question 1: if we only add code as Pugs can handle it, we
always have working code examples. However, how do we know which code
we should update? If we write up full examples, there's less
maintenance, but we're also less likely to spot syntax errors since a
lot of code won't even compile.
And please, if you have commit access, feel free to correct my code and
add more. I don't want to do this by my
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
add more. I don't want to do this by myself.
http://svn.openfoundry.org/pugs/examples/pleac/
I'd be happy to put one up if that seemed helpful, or perhaps there's
a preferred place for such things...(or maybe every really just
prefers SVN annotations ;) )
Marcus Adair
Yes, yes, yes. I am a strong believer in wiki, especially when most
changes are small refactors rather than large rethinkings, as would seem
to be the case here.
Luke
Well, I've found that "doing wiki in svn", i.e. handing out committer bits
to all interested people, and put discussions in each file themselves
(often by summarizing mailing list or IRC discussion), has worked quite
well too, as it reduces the bitrotting between the actual code and the
discussions around them. gcomnz, would you like a committer bit? :-)
That said, there is a pugs.kwiki.org wiki, and I'd also be happy if
people would like to use that to coordinate PLEAC efforts.
Thanks,
/Autrijus/
I guess the only thing I'd really like to see is a lot of random
community improvements around commits to the recipes, for one. I know
that I've got a long way to "getting" the best practices for Perl 6. I
guess my sense of versioned source is that it's not readable the way a
book or a wiki is, and perhaps there's also less of an editorial
sweep, the way both books and wikis have, where people who perhaps
don't create a lot of content go through and clean up a lot of content
(or rather, code, in this case).
That said, svn is probably fine...just my two cents.
Marcus