Bryneven presents Encapsulation with Purple Mash's 2Logo Coding class
Channel: Erin Bradley
Date: 2019-10-16

Bryneven Primary offers the coding class -a bi-weekly lesson- on Tuesdays and Wednesdays in the fourth term. 

Here, we promote Tuesday, October 15th 2019:  a lesson on encapsulating (containing) our code in a procedure, and then calling a procedure that draws the main shapes. In procedures, we use lines of code to move the pen in a controlled manner.

The main discussion of how robotics and human knowledge are related - with its logic, patterns, etc. It is like code that refers to the controls behind the natural movement of arms and legs (cybernetics).


Cybernetics is widely used in the biological sciences: hence my link to brain connections - communication processes and control mechanisms.

Here I am trying to make a rather brief comparison using processes - in essence, drawing an image - when introducing biological systems (brain and knowledge) and artificial (robotics), remember that participating students are from 8 to 11 years old.

We use 2Logo Purple Mash to learn how various commands can be contained; suitably organized in accordance with well-appointed procedures.

The lesson explores the repetition -using the square brackets with the sequence of commands- moving a pen. A procedure also engages with the pen up and pen down commands, which move and reposition the pen.


Mr Bradley teaches for the Gauteng Department of Education. Mr Bradley teaches at Bryneven Primary School. This is a public school in Bryanston, Johannesburg, Gauteng, South Africa. Bryneven Primary has introduced coding dynamics -using Purple Mash- since 2017.