<?xml version="1.0" encoding="windows-1252"?>
<node id="451340" title="Re: How to introduce 8 year olds to (Perl) programming?" created="2005-04-25 16:31:54" updated="2005-07-14 21:22:09">
<type id="11">
note</type>
<author id="177604">
bmann</author>
<data>
<field name="doctext">
Great question - I'll have to bookmark this thread.&lt;p&gt;
I have an 8 year old too. Codes and ciphers are real popular with her and her classmates right now. About a month ago I took her to the library and she checked out every book she could find, and she's spent hours creating her own substitution ciphers. &lt;p&gt;
A few days ago she asked me if I could teach her how to "hack". I thought this was a great opportunity, so (after I explained the difference between "hack" and "crack") we sat down with paper and pencil and worked out what would have to happen to encrypt and decrypt a simple message. Then we sat down at the keyboard together and duplicated rot13, and she loved it.&lt;p&gt;
It gave me an opportunity to talk about how characters are displayed, &lt;code&gt;chr&lt;/code&gt; and &lt;code&gt;ord&lt;/code&gt;, then &lt;code&gt;tr&lt;/code&gt;. Since then, she's asked probably 10 times what else she could learn!&lt;p&gt;
Our next project is printing triangles. You know the type...
&lt;code&gt;X
XX
XXX
XXXX&lt;/code&gt; I'm going to start with hard coded print statements and from there teach her about loops.&lt;p&gt;
Bottom line, I'd start with something fun that catches their attention as well as gives you a chance to explain some of the basics - I/O, conditionals, simple calculations, character manipulation, graphics, flow control, etc. If your presentation entertains, you'll engage more of the kids.&lt;p&gt;
Whatever you decide to do, please post the results back here so we know how it turned out.</field>
<field name="root_node">
451305</field>
<field name="parent_node">
451305</field>
</data>
</node>
