Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Teaching aid pragmas (perlite?)

by jthalhammer (Friar)
on Mar 30, 2006 at 09:07 UTC ( #540144=note: print w/ replies, xml ) Need Help??


in reply to Teaching aid pragmas (perlite?)

I don't know if it is suitable for children, but if you think of Conway's "Perl Best Practices" book as a teaching guide, then the criticism pragma might be just what you're looking for.

-Jeff


Comment on Re: Teaching aid pragmas (perlite?)
Re^2: Teaching aid pragmas (perlite?)
by blogical (Pilgrim) on Mar 30, 2006 at 19:03 UTC

    That sounds very much like what I had in mind! Nice work, jthalhammer- a great idea.

    I would probably look to criticism for the review mechanism, but use different criteria, based on a lesson plan, to disallow even some functions and structures that are proper perl and within the "best practices." The criteria would be gradually loosened as the lesson progressed and introduced new tools to the students.

    criticism would be a great "post grad" recommendation, or exta credit challenge on assignments- see what level of criticism a student's code will pass thorugh unscathed.

    "One is enough. If you are acquainted with the principle, what do you care for the myriad instances and applications?"
    - Henry David Thoreau, Walden

      If you give me a few more specific examples, I can probably whip up something for you. Perl::Critic is very configurable & extensible. For instance, we could create a policy that would let you prohibit (or require) the use of an arbitrary set of builtin functions. Or limit the number of statements or operators or subroutines that you're allowed to use. I believe Perl::Critic has real potential as a teaching tool, so I'm genuinely interested in hearing your ideas.

      -Jeff

        While I would like to some day, I'm not currently teaching perl, and so don't have a syllabus to make suggestions from. merlyn, however, does.

        What about creating rules that could be exported individually, then using those to create progressive bundles (:lesson1, :lesson2) that would mirror a lesson plan? That way a teacher could tailor usage to their particular syllabus OR use the pre-made bundles? Autodidacts could also just plug in the right bundle to keep them on course, or eliminate specific rules as they get the hang of things.

        Perhaps it would be useful to create another meditation node focusing on picking out specific rules and creating a good, general syllabus (unless you adopt the current stonehenge one)? Most of my suggestions right now would probably mirror the chapters of the llama books, as that's how I learned it.

        "One is enough. If you are acquainted with the principle, what do you care for the myriad instances and applications?"
        - Henry David Thoreau, Walden

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://540144]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2014-11-27 04:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (179 votes), past polls