Skip to content
Tech News
← Back to articles

Logo Programming

read original get Learning Resources Botley 2.0 Coding Robot → more articles
Why This Matters

A primer on how Logo programs are built from small user-defined procedures that become indistinguishable from built-in primitives. It's a reminder of an educational language design philosophy—extending a vocabulary incrementally—that shaped how generations learned to think about abstraction and composability in code.

Key Takeaways
Worth a Look

Learning Resources Botley 2.0 Coding Robot — Logo's turtle graphics live on in screen-free coding robots like Botley 2.0, which kids program with step-and-turn commands just like forward and right. Building repeatable command sequences teaches the same procedure-within-procedure thinking that makes Logo so elegant. It's a fun, hands-on way to see your code draw paths across the floor.

See Learning Resources Botley 2.0 Coding Robot on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.

Logo programs are usually collections of small procedures. Generally, procedures are defined by writing them in a text editor. The special word to is followed by the name of the procedure. Subsequent lines form the procedure definition. The word end signals that you're finished.

In our turtle graphics example we defined a procedure to draw a square

to square

repeat 4 [forward 50 right 90]

end

and used it as a subprocedure of another procedure

to flower

repeat 36 [right 10 square]

end

Similarly, flower could be a building block of something larger

... continue reading