Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Great question - I'll have to bookmark this thread.

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.

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.

It gave me an opportunity to talk about how characters are displayed, chr and ord, then tr. Since then, she's asked probably 10 times what else she could learn!

Our next project is printing triangles. You know the type...

X XX XXX XXXX
I'm going to start with hard coded print statements and from there teach her about loops.

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.

Whatever you decide to do, please post the results back here so we know how it turned out.


In reply to Re: How to introduce 8 year olds to (Perl) programming? by bmann
in thread How to introduce 8 year olds to (Perl) programming? by domm

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 musing on the Monastery: (3)
As of 2024-03-28 18:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found