Logo Programming!

***

Q: What did kids do back in the olden days, before smoking crack and sniffin glue was the regular hobby it is for today's youngsters?

A: Why, they programmed in Logo, silly!

What a christmas treat! I just saw this heading, Logo Rediscovered on programming.reddit.com -- and immediately had to take their challenge:

Can you figure out how to draw a tree?

a tree in logo

Spoiler alert:Here's my code for implementing a tree...

Love that recursion!

code to generate a tree
 

My book "Choose Your First Product" is available now.

It gives you 4 easy steps to find and validate a humble product idea.

Learn more.

gazzo on December 24, 2007 15:03 sez:

Logo madness! Ah it takes me back!


WaterBreath on January 03, 2008 10:10 sez:

Wow, I haven't used Logo since grade school. But it was LogoWriter for the Apple IIe back then. I moved on to Apple Basic before long, and never knew that Logo even supported procedure/function arguments, let alone recursion! If I'd known it was so sophisticated I wouldn't have been in such a hurry to learn a "real" programming language like BASIC. =D


Brian Adkins on January 28, 2008 17:48 sez:

to tree :n
if :n < 1 [hideturtle stop]
setheading 315
forward :n
tree (:n / 2)
setheading 135
forward :n
setheading 45
forward :n
tree (:n / 2)
setheading 225
forward :n
end


(By the way, I read every comment and often respond.)

Your comment, please?

Your Name
Your Url (optional)
Note: I may edit, reuse or delete your comment. Don't be mean.