DEV Community

Simon Foster
Simon Foster

Posted on • Originally published at funkysi1701.com on

Scratch

My 6 year old boy has been playing with Scratch, so here is a quick introduction to what we have learnt about it.

Scratch is a website that allows you to “code” by combining blocks together.

This is how the scratch website describes its self

Scratch is the world’s largest coding community for children and a coding language with a simple visual interface that allows young people to create digital stories, games, and animations. Scratch is designed, developed, and moderated by the Scratch Foundation, a nonprofit organization. Scratch promotes computational thinking and problem solving skills; creative teaching and learning; self-expression and collaboration; and equity in computing. Scratch is always free and is available in more than 70 languages.

Scratch can be found by going to https://scratch.mit.edu/projects/editor/

A lot of the blocks affect your character or “sprite”, the default is a cute looking dog which may also be the scratch logo.

The left hand side of the screen consists of a list of the blocks of code you can use and your coding area where you can arrange them.

The right hand side shows the results of your code, where you can run and test what your code does.

It didn’t take my boy long to code something like this tonight.

This game moves the “sprite” towards the mouse pointer and a message “got you” appears on screen when it reaches your mouse pointer.

I won’t go through all the different blocks you can choose from, but I will highlight some of the programming concepts being learnt here.

inputs every computer program needs inputs and there are lots to choose from, things like moving the mouse or pressing a key on the keyboard.

outputs your code needs to do something, this code moves a sprite about the screen

variables my boy hasn’t heard of algebra yet, but he is already grasping concepts like variables, where a value can be assigned and maths can be applied to. In this example the score increases

loops this program keeps looping until it reaches the mouse pointer

logic other logic commands are also available, like if / else statements, also <, > and = statements can be used

There are lots of help and tutorials on the site to help you along, and you can customise the look and even record short sound clips to play in your code.

Discussion (0)