More about teaching Perl

Ovid on 2002-08-26T21:17:58

While meeting with the high school teacher, we managed to get a fair amount of ground covered. Since he doesn't know Perl, he needs to buy as much time as possible and since this will be a Perl/CGI beginning programming class (I can hear the screams of horror from the audience already), he planned to spend the first two weeks covering basic HTML. That's actually nifty as he'll have a nice extra chunk of time to learn Perl and he has enough information from his HTML classes that he won't have as much prep time to worry about.

His syllabus, though, worries me.

  1. Sept 9 - 13
    HTML
  2. Sept 16- 20
    HTML
  3. Sept 23 - 26
    Elements of programming and introduction to Perl
  4. Sept 30 - Oct 4
    Perl building blocks
  5. Oct 7 - 11
    Getting data using Perl and HTML
  6. Oct 15 -18
    Getting data into a script
  7. Oct 21 - 25
    Scalars
  8. Oct 28 - Nov 1
    Conditionals and loops
  9. Nov 4 - 8
    Arrays
  10. Nov 12 - 15
    Subroutines
  11. Nov 18 - 22
    Hashes
  12. Nov 25 - 26
    Review

He spends an entire week on scalars, but this is four weeks after introducing Perl. Not good. Admittedly, he doesn't know what a scalar is, so he's just going by the table of contents of Perl and CGI for the World Wide Web and this has led him, and me, down this dangerous path. I'll work with him to fine tune this stuff.

Any recommendations for a good book introducing Perl and CGI? Every one that I have come across as been absolutely horrendous. Elizabether Castro's book (second edition only) seems to be the best of a bad bunch. If the teacher had the time, I'd have him working with two different books: an intro to Perl and an intro to CGI, but that's not an option.


Better Books?

davorg on 2002-08-26T22:54:53

My opinion is that John Callender's Perl for Web Site Management is a better introduction to Perl for CGI (and a few other things) than Castro's book.

Re:Better Books?

Ovid on 2002-08-27T00:28:07

Thanks for the tip. I'll check it out. While I had heard about the book, I hadn't considered it because I hadn't read it (much less skimmed it) and the title "Web Site Management" sounds considerably more involved than the basics of what they're trying to offer these kids. Still, I would much rather have a book be slightly off-target than teach Bad Things.

This reminds me that I need to get around to posting a review of Elizabeth Castro's book. It's much better than the first, but she still constructs headers and cookies manually and one of her programs has (IIRC) a null-byte hack vulnerability. I found that ironic as she was using that program to demonstrate how taint checking works.

Re:Better Books?

davorg on 2002-08-27T05:42:12

See my review of Callender's book.

One of my biggest complaints was that the title really didn't reflect what the book was about.