Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: How to introduce 8 year olds to (Perl) programming?

by chas (Priest)
on Apr 25, 2005 at 20:33 UTC ( #451341=note: print w/replies, xml ) Need Help??

in reply to How to introduce 8 year olds to (Perl) programming?

I guess if I had to do something like that, I might write a very simple program that asks a few questions and then "magically" tells the user their age or birthday or some number they've thought of, etc. (Based on some simple algebraic identity...probably you've seen many such.) That might catch their attention, and then you could show them the few lines of code. Since Perl code can be written so that it is almost English, that should be understandable and also illustrates things that programs can do - communicate with user, store input in a variable, do arithmetic calculations, etc. In fact, it's sounding more doable all the time ... (except maybe for the "who don't/barely speak english" part.) Even if they don't understand perfectly, they'll come away with some ideas, and that's probably the best you can do in the situation you describe.
Good luck!
  • Comment on Re: How to introduce 8 year olds to (Perl) programming?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://451341]
[Corion]: Hehe - $work is a place where we have lots of (money) accounts, and lots of journals where every transaction is recorded. But our HR system where the accounts of hours worked and vacation days taken are stored, there is no real account of who changed ...
[Corion]: ... that balance, and when. And it seems to me that they somehow really messed up the database since the start of the year and have been frantically adding and subtracting numbers from the totals, but without trace ;)

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2018-01-23 16:42 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (249 votes). Check out past polls.