Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I would suggest that the teacher go right to perl's true strength, which is text processing. There is a tremendous amount of text at Project Gutenberg, so that part is taken care of. Download text and analyze it.

First, get through "Hello, World," Then, explain this program, using a chunk of Moby Dick as input:

while(<>) { if (/Ahab/) { print $_; } }
Introduce scalars, arrays, and hashes, all as ways to enhance the analysis of text.

Have the one of the more advanced students show the others how to turn a program into a CGI. Then have another advanced student explain the concept of taint. No one will understand it, but it will be impressive and give the student a reputation as an uber-hacker.

To finish off the semester, introduce the concept of modules and show off fuzzy string matching with String::Approx.

If you have a truly gifted student in the class, ask him or her to write a program to answer certain simple questions about Moby Dick.

This course can work out very well. The trick is to show students how to make simple things simple. Web programming and databases are far more complex than the course needs to be. Just put perl to work on plain ASCII text, and let it roll.

I'll be teaching high school computing this year also, so I hope to see more posts about your friend's course. I plan on covering perl (just for text processing), MACSYMA (as a companion to second year algebra), and Octave (to crunch a few numbers and draw some graphs).

It should work perfectly the first time! - toma


In reply to Re: Can a non-programmer teach Perl? by toma
in thread Can a non-programmer teach Perl? by Ovid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-19 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found