Every now and then she asks for a computer lesson. Today that happened again and there we went. After a brief discussion we decided to try Turtle Roy again. It had been a while since the last time, but she remembered at least some of the basic stuff. She laid out grandiose plans of what she wants to achieve today and I told her it involves recursive algorithms. We decided to start with basics and try to draw a rectangle first.
After some practice, we started formulating the one-liner. Meanwhile, here little sister
And then I got my computer back.
After discussing how the algorithm should be constructed, she started editing it inline. I taught her one of my coding tricks.
"Always type both opening and closing parentheses first and then add content between"
Maybe this is the lesson she'll always remember and will teach it to her own children later. After some editing, she had this.
r 4 (s [fd 121, rt 90])
It draws a perfect rectangle! Now it was time to give a name to this algorithm and move to the next steps. Her patience was running out though. So we saved the work to continue later...
Nothing new this time really. But we had a good time and maybe we'll get to some new stuff next time, if we continue the saved program.