<commit_before>---
layout: post
title: Teaching My 5 Year Old Daughter To Code
category: Business
tags: Coding Teaching WebDevelopment
year: 2012
month: 11
day: 18
published: true
summary: What Happened When I Tried To Teach My 5 Year Old Daughter To Code
image: placeholder.jpg
comments: true
---

My little girl's shown a keen interest in what I do for a job amongst other things recently. She's a great reader and writer for her age and so I started looking around for a simple scripting language or similar that I could teacher her.

Now the thing to remember about kids is this, no matter how smart they are they all have the attention span of a gnat! 3 seconds max, if it's not interesting then they're not interested, period! This limited my scope significantly. I initially looked at Logo and Phrogram but they seemed a little to advanced for using right now with no discernible reward without putting in a lot of initial effort. Then I stumbled on [RoboMind](http://www.robomind.net/en/index.html). This seemed like the perfect choice. Simple syntax, you can do some really rewarding stuff with just a few commands (7 to be precise; paintWhite, stopPainting, forward, backward, left, right, repeat), beautifully designed to capture a child's interest, and most important for testing out a child's interest in something  it's free for personal use!

I spent the next 45 minutes talking to her about how to make the robot move, at first she thought it was a game and that she had to click on stuff but she quickly got the hang of it. Learning the basic syntax was challenging for her, but fun and rewarding.

![An image of my daughter trying to figure out how many squares to move the robot](/img/posts/teaching-my-5-year-old-daughter-to-code/scripting.jpg "scripting")

Here she is trying to figure out how many squares to make the on-screen robot move. We wrote a very simple script to make the robot draw a pyramid (apparently the initial script that gets loaded draws a square and that's just too "boring"), and as expected there were one or two bugs introduced by my daughter miscounting or confusing left and right. She had more fun debugging the code than she did writing it.

This is the program before script execution.

![An image of the program before execution](/img/posts/teaching-my-5-year-old-daughter-to-code/script_before.png "script before")

This is the program after execution.

![An image of the program after execution](/img/posts/teaching-my-5-year-old-daughter-to-code/script_after.png "script after")

In total I spent a good hour going through stuff with her, helping her out and debugging the code with her to produce this. Not bad for a first attempt if I do say so myself. It seems to have caught her interest and has made her very keen to learn more.<commit_msg>another dumb copy/paste<commit_after>---
layout: post
title: Teaching My 5 Year Old Daughter To Code
category: Business
tags: Coding Teaching WebDevelopment
year: 2012
month: 11
day: 18
published: true
summary: What Happened When I Tried To Teach My 5 Year Old Daughter To Code
image: placeholder.jpg
comments: true
---

My little girl's shown a keen interest in what I do for a job amongst other things recently. She's a great reader and writer for her age and so I started looking around for a simple scripting language or similar that I could teacher her.

Now the thing to remember about kids is this, no matter how smart they are they all have the attention span of a gnat! 3 seconds max, if it's not interesting then they're not interested, period! This limited my scope significantly. I initially looked at Logo and Phrogram but they seemed a little to advanced for using right now with no discernible reward without putting in a lot of initial effort. Then I stumbled on [RoboMind](http://www.robomind.net/en/index.html). This seemed like the perfect choice. Simple syntax, you can do some really rewarding stuff with just a few commands (7 to be precise; paintWhite, stopPainting, forward, backward, left, right, repeat), beautifully designed to capture a child's interest, and most important for testing out a child's interest in something - it's free for personal use!

I spent the next 45 minutes talking to her about how to make the robot move, at first she thought it was a game and that she had to click on stuff but she quickly got the hang of it. Learning the basic syntax was challenging for her, but fun and rewarding.

![An image of my daughter trying to figure out how many squares to move the robot](/img/posts/teaching-my-5-year-old-daughter-to-code/scripting.jpg "scripting")

Here she is trying to figure out how many squares to make the on-screen robot move. We wrote a very simple script to make the robot draw a pyramid (apparently the initial script that gets loaded draws a square and that's just too "boring"), and as expected there were one or two bugs introduced by my daughter miscounting or confusing left and right. She had more fun debugging the code than she did writing it.

This is the program before script execution.

![An image of the program before execution](/img/posts/teaching-my-5-year-old-daughter-to-code/script_before.png "script before")

This is the program after execution.

![An image of the program after execution](/img/posts/teaching-my-5-year-old-daughter-to-code/script_after.png "script after")

In total I spent a good hour going through stuff with her, helping her out and debugging the code with her to produce this. Not bad for a first attempt if I do say so myself. It seems to have caught her interest and has made her very keen to learn more.
{'fraction_non_alphanumeric': 0.05063291139240506, 'fraction_numerical': 0.006061686575147085, 'mean_word_length': 4.317535545023697, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6440022', 'n_tokens_mistral': 1454, 'n_tokens_neox': 1369, 'n_words': 895}