Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

What new tutorials would you like to see in Tutorials?

by ybiC (Prior)
on Sep 17, 2002 at 17:13 UTC ( [id://198559]=perlmeditation: print w/replies, xml ) Need Help??

Oftentimes I'll read somemonk's answer to an SoPW and think "Neat-o! That could make a tutorial".   This happened most recently at this thread.   An expanded answer could easily be a tutorial - Providing Default Values Using Scalars, Arrays, and Hashes.

Tutorials are great resources here at PerlMonks.   What would you like to see there that isn't there yet?
    cheers,
    Don
    striving toward Perl Adept
    (it's pronounced "why-bick")

Update: fixed borken Tutorials links, added this mention of a tutorial I'd like to see: Dispatch Tables

  • Comment on What new tutorials would you like to see in Tutorials?

Replies are listed 'Best First'.
Re: What new tutorials would you like to see in Tutorials?
by Juerd (Abbot) on Sep 17, 2002 at 18:09 UTC

    My tutorial wishlist, in no particular order:

  • Recusive regex tutorial
  • POE tutorial
  • Recursion unrolling tutorial
  • PLP tutorial
  • Style tutorial
  • Symbol table access tutorial
  • perlrun Tutorial
  • Getopt tutorial
  • strict Tutorial

    - Yes, I reinvent wheels.
    - Spam: Visit eurotraQ.
    

      * Recusive regex tutorial
      Hurrah!
      * POE tutorial
      Ditto
      * Recursion unrolling tutorial
      A good start can be made here
      * PLP tutorial
      Wouldn't you be the best monk for this?
      * Style tutorial
      Isn't style essentially objective making it rather difficult tutor? But then again I guess you could offer a variety of widely accepted styles, hey wait a second ...
      * Symbol table access tutorial
      I'll take that (give me a month or two. maybe)
      * perlrun Tutorial
      I guess perlrun ain't enough for some people ;)
      * Getopt tutorial
      Ah, but which Getopt library to tutor with (I'm guessing Getopt::Long with a smattering of POD::Usage)?
      * strict Tutorial
      Hurrah!
      HTH

      _________
      broquaint

        (re PLP tutorial) Wouldn't you be the best monk for this?

        Well, perhaps. But I'm biased, and every time I try to write a tutorial, I notice how hard that is if you know all the inside information. A good tutorial should not cover everything there is, but it should also not forget to mention important things. All PLP comes natural to me, so I can't really focus well on what new users would want to know.

        Isn't style essentially objective making it rather difficult tutor? But then again I guess you could offer a variety of widely accepted styles, hey wait a second ...

        It would be *very* hard. This kind of tutorial shouldn't be about right and wrong, but be focussed at the differences in several styles and objectively (very, very hard) discuss the better and worse parts of each well known style. But mostly, it could help beginners understand why indenting and well chosen identifiers are important. Make people think about their array names: singular or plural.

        I guess perlrun ain't enough for some people ;)

        Well, it is. But it's a reference. perlrun can't teach you how useful -i -pe's///' can be. Today, I made this neat one-liner:

        perl -anle'push @s, $F[1] > $F[2] ? $F[1] : $F[2]; END { print((sort { + $a <=> $b } @s)[.95 * @s] * 8 / 2**20) }'
        Not the clearest of examples, but I think that, for most people, understanding -anle will be the hardest part.

        Ah, but which Getopt library to tutor with (I'm guessing Getopt::Long with a smattering of POD::Usage)?

        yBic /msg'ed me this node: The Dynamic Duo --or-- Holy Getopt::Long, Pod::UsageMan!.

        - Yes, I reinvent wheels.
        - Spam: Visit eurotraQ.
        

Re: What new tutorials would you like to see in Tutorials?
by BazB (Priest) on Sep 17, 2002 at 21:00 UTC

    A few of these things are pushing the definition of "tutorials" and are closer to "handy things to know", but I'll mention them anyway.

    I'd like to see information relating to using Perl with lots of data (tens of millions of records and/or multi-Gb files).

    Selfishly enough - I do and I'm having to try as I go on a lot of things :-)
    I've found it quite hard to find certain bits of info, and it's something that would broadened the information in the tutorials further.

    I'd also like to see a collection of bits of information that we could probably all work out for ourselves, but someone out there probably already know (and could save everyone else hours by telling us!)

    • Threading with Perl and problems that might be encountered
    • Using fork()
    • Reading/writing large amounts of data efficiently with Perl
    • Info on memory usage of different data structures

    I've got some experience with handling large amounts of data in Perl, but not nearly enough to write tutorials on the subject.
    I'm also certain that there are loads of tips and tricks that could be learnt.

Re: What new tutorials would you like to see in Tutorials?
by ajt (Prior) on Sep 18, 2002 at 08:22 UTC

    Good idea!

    Like many others I have my own selfish agenda, I'd like to see tutorials on:

    • Parsing structured mark-up: XML and HTML for example. People often seem to ask why their quick RegEx fails on HTML/XML. There are some great (e.g. XML::LibXSML) new generation ways of dealing with XML, and there are some very overlooked (e.g. HTML::TreeBuilder and XML::TreeBuilder) XML/HTML modules out there.
    • Perl on different platforms. I know some of this is in the actual documents, but it's not presented in a tabular manner. e.g. flock works on some Win32 systems, but not all, or that Cygwin Perl has quite a few differences with AS Perl and so on.
    • When NOT to use Perl, common tasks that people think they should use Perl for, but where there is a far easier way to do it...

    --
    ajt
Re: What new tutorials would you like to see in Tutorials?
by rbc (Curate) on Sep 17, 2002 at 20:32 UTC
    I would like to see a tutorial on how to go about contributing to CPAN
  • How to get a CPAN id
  • How to get a Namespace aproval from CPAN
  • How to package Perl modules for CPAN (Makefile.PL, test scripts, etc)
      Good source material for this idea can be found here and the following manpages: perlnewmod, perlmod, perlmodlib, and perhaps perlmodinstall.
Re: What new tutorials would you like to see in Tutorials?
by shotgunefx (Parson) on Sep 18, 2002 at 04:43 UTC
    It's not high on the priority list I'm sure, but I'm ashamed to admit that Formats, (much like my phone system) are one of those seemingly simple things I'm less than proficient with. Most books glance over them. I know there are many better alternatives, it's just one of those things I'd like to understand for completeness.

    -Lee

    "To be civilized is to deny one's nature."
Re: What new tutorials would you like to see in Tutorials?
by greenFox (Vicar) on Sep 19, 2002 at 02:35 UTC

    A higher level tutorial on XML and Perl would be good- something that gives a brief over-view of what it is and what it is good/bad for (in a Perl context) and surveys the available modules and their strengths & weaknesses, possibly over-lapping with ajt's suggested structured markup tutorial.

    Not sure if any-one uses it much any-more but I have previously wanted for a Perl Curses tutorial.

    --
    Until you've lost your reputation, you never realize what a burden it was or what freedom really is. -Margaret Mitchell

Re: What new tutorials would you like to see in Tutorials?
by FoxtrotUniform (Prior) on Sep 18, 2002 at 04:16 UTC

    I've been meaning to write a tutorial on closures, but I'm short on real-world examples and I don't want to plagiarize from such beasts as Why I like functional programming... any suggestions?

    (Yes, I'm hijacking ybiC's thread for my own, possibly nefarious, purposes. Nothing to see here, move along, nothing to see....)

    --
    F o x t r o t U n i f o r m
    Found a typo in this node? /msg me
    The hell with paco, vote for Erudil!

      <plug>Iterators</plug> are one good real-world use.

      -Lee

      "To be civilized is to deny one's nature."

        Hmm... iterators on anonymous functions could be fun, especially if you're doing a bunch of numerical code.

        sub get_iter { my ($subref) = @_; my $i = 0; return sub { print "f($i) is ", &$subref($i++), "\n"; } } my $iter = &get_iter(sub {shift; $_*2}); for (0..20) { &$iter; }

        I had actually thought, "well, what about iterators?", but somehow my brain turned that into "yeah, bind an array into the scope of a function, that's really useful". Thanks shotgunefx!

        --
        F o x t r o t U n i f o r m
        Found a typo in this node? /msg me
        The hell with paco, vote for Erudil!

Re: What new tutorials would you like to see in Tutorials?
by PodMaster (Abbot) on Sep 19, 2002 at 02:08 UTC
    How about a tutorial on the "flip flop" ( .. ) operator? ( I haven't seen one, and its kind of confusing )

    update: I just dawned on me, we need more wxPerl tutorials.

    ____________________________________________________
    ** The Third rule of perl club is a statement of fact: pod is sexy.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://198559]
Approved by hiseldl
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-04-19 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found