Why This Matters
Logo's core idea — extending the language by defining new procedures that become indistinguishable from built-in primitives — is a foundational lesson in abstraction that still underpins modern programming education and language design. The article is a reminder that the tools we hand beginners shape how they think about building software, one small composable step at a time.
Key Takeaways
- Logo programs are built from small procedures defined with 'to' and 'end', each usable as a building block for larger ones (square → flower → garden).
- User-defined procedures are indistinguishable from primitives, so functionality like 'pick' may be built in or hand-written without changing how code looks or works.
- The design encourages incremental learning by extending the language's vocabulary, mirroring how people acquire spoken language.
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