I have been taking an undergraduate computer science class so I can learn to program in Python. I am loving it and sometimes in the middle of class I totally get everything the professor is saying and I think, "Damn, I missed my calling and I should have majored in computer science in college." Other days the professor starts talking about radians and sine and cosine and I realize that a whole MAJOR in computer science is pretty math-y and I think, "Screw this, Thank God I didn't major in this in college."
Anyway, a couple weeks ago we were given the homework assignment to write a Turtle Graphics Program. This is the Logo language stuff where the kids type in a command and make a turtle move across the screen, turn left and right, and draw a picture. http://en.wikipedia.org/wiki/ Logo_(programming_language)
Anyone know what I am talking about? I totally used a program like this in the 1980's, in 3rd or 4th grade. It was my very first introduction to using a computer. Actually, I thought that was all computers were used for--to draw little pictures of hexagons and stuff. Not long after that, when my family purchased a Real Home Computer. I remember being shocked that we got a printer too; that seemed like such an unnecessary luxury to me. I think I even said, "Wow, so when I make pictures on the screen I'll be able to print them out?" Little did I know my parents expected me to do more with that machine than just Turtle Graphics.
And now, 30 years later, I was being asked to write the interpreter that translates the kid's command of "fd 200" in Logo language to make the turtle actually move forward 200 pixels. How cool is that? So I wrote the program and was feeling So Proud and dying to show it to someone who would appreciate it.
And then the most amazing coincidence ever occurred. Tai came home from first grade this past Monday and I asked, "What did you do in computer class today? (Yes, they have computer class starting in kindergarten now). And he said "Oh! It was cool, we talked to a turtle on the screen. I typed stuff in and made the turtle move!"
HOLY CRAP! So of course I pulled up my program and let him play with it for 20 minutes. It was so cool to be able to do that. Too bad he could not appreciate all the programming (not to mention the trigonometry) I had to do to make it work. And of course he kept telling the turtle to move forward more than 7,000 pixels when the graphics window I made was only 600 x 700. Kids, man. They find a way to break everything.
2 comments:
"Math-y" is my new favorite word ;)
I'm not taking programming (or comp sci in campus, though am a second year and i really wish i was...) but am teaching myself programming in python using tutorials :).. and am falling in love with it...
haven't met that turtle prog yet, but then again, am just a beginner...
any advice on this topic will be highly appreciated :)
Post a Comment