This article has links to websites or programs outside of Scratch and Wikipedia. Remember to stay safe while using the internet as we cannot guarantee the safety of other websites.
This article is about the library for building creative computing interfaces. For the blocks used in the editor, see Blocks. For the plugin used in the Scratch Forums and Wiki, see Block Plugin.

Scratch Blocks is a library of graphical programming blocks for building creative computer interfaces being developed by the Scratch Team in collaboration with the Blockly team and using Blockly as a dependency. Scratch Blocks are designed to enable young people to code their own toys and a wide range of other objects.

The library is used to implement the blocks in Scratch. It may also be adopted by other programs intended for teaching children to program. Scratch Blocks is licensed under the Apache 2.0 License.[1]

The Purpose

Scratch Blocks are made for use beyond the Scratch online coding environment. Scratch Blocks can be easily implemented into many other programs, with the goal of providing a coding language that more kids can use across devices. The Scratch Team described the purpose behind Scratch Blocks:

“ Our broader goal is not just to support Scratch itself, but to spread the Scratch approach to coding and learning. And that’s why we’re announcing today a new collaboration with Google, focused on helping other developers create high-quality coding experiences for kids. As a first step, we’re working with Google to develop a new generation of graphical programming blocks, called Scratch Blocks, which we hope will be adopted widely by developers of children’s products. The underlying code for Scratch Blocks will be made available as open source so that developers can easily integrate the blocks into apps, games, and toys that they are creating for kids. ”

― MIT Scratch Team[2]

Support for Horizontal and Vertical Orientation

Scratch Blocks were originally designed to support both horizontal and vertical blocks.[2][3][4] Horizontal blocks use icons rather than words to describe their purpose. It is believed this is easier for young children to learn:

“ Scratch Blocks brings together two different programming “grammars” that we have designed over the past decade. The standard Scratch grammar uses blocks that snap together vertically, much like LEGO bricks. For our ScratchJr software, intended for younger children, we developed blocks that are labeled with icons rather than words, and snap together horizontally rather than vertically. We have found that the horizontal grammar is not only friendlier for beginning programmers but also better suited for devices with small screens (such as mobile devices). ”

― MIT Scratch Team[3]

The horizontal blocks were never finished.[5] They were removed entirely in Scratch Blocks 2.0.

Scratch VM

The Scratch VM is a virtual machine library for running programs written with Scratch Blocks. It constructs an abstract syntax tree and keeps its state.[6]

References

Cookies help us deliver our services. By using our services, you agree to our use of cookies.