Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Can a non-programmer teach Perl?

by Anonymous Monk
on Aug 18, 2002 at 17:45 UTC ( [id://191004]=note: print w/replies, xml ) Need Help??


in reply to Can a non-programmer teach Perl?

I have two suggestions:
1. I am teaching myself Perl right now, and have found the following tutorial very thorough: http://www.ebb.org/PickingUpPerl/
There are several versions, PDF, HTML "chapters", one huge HTML file my preference, and maybe some others. I was a Computer Science major in college myself, so maybe i'm overestimating how readable it is.
2. Go to college web sites and use those as a model. Obviously a high school course will go at a much slower pace, but these should give the teacher some good ideas of the basics. Just pick a college and go to its cs department's web site, cs.<college>.edu and find the intro CS course.
2.5 There are many programs that I have always been assigned when learning a new language that help you grasp the basics. These include factorial (10! = 10*9*8*7*..*1 = 3628800) and calculating the fibonacci sequence (a set in which each number is the sum of the two previous numbers, beginning with {0, 1}, that is, 0, 1, 1, 2, 3, 5, 8, 13, 21... hope this helps, greg

Replies are listed 'Best First'.
Re: Re: Can a non-programmer teach Perl?
by clintp (Curate) on Aug 19, 2002 at 01:59 UTC
    There are many programs that I have always been assigned when learning a new language that help you grasp the basics.
    Odd that both examples you gave are usually the ones that programming books give to teach recursion. I wouldn't exactly call that a basic topic for most new-to-programming types. I always mention recursion and dance around it for a little while to expand a few brains in the audience. Then take those students who are prepared for it (aside) on an adventure through factorials, fibonacci, reversing strings/arrays (non-perl classes), and to cut the wheat from the chaff: Towers of Hanoi.

    It's terribly useful when you need it, it's good that they're aware of it even to point out some uses (trees, etc...) but when they're busy grasping the concept of what a subroutine/function is, it can be a but much. Forget recursion for most, come back to it later when you can traverse directory structures or search b-trees or something.

    PS: The other problem I've had with Fibonacci and factorials in particular is they're terribly easy to program, but they're not useful in everyday life. If I have to explain the math (which with those two to an average audience, I usually do) it's not worth the trip.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-25 11:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found