Hardware Reference
In-Depth Information
SO FAR IN this topic, you've learned a lot about how to use programs that other people have
written on your Raspberry Pi. he chief goal of the Raspberry Pi project is to get people writ-
ing their own programs, however—and not just adults. he Raspberry Pi Foundation is
working to get the device adopted as an educational tool for all age ranges.
A key requirement for reaching that goal is ensuring that young children can experience the
joy of creating their own software, rather than just consuming other people's code. he secret
to this is Scratch .
Introducing Scratch
Created by the Lifelong Kindergarten group at the Massachusetts Institute of Technology
Media Lab in 2006 as an ofshoot of the Squeak and Smalltalk languages, Scratch takes the
core concepts of programming and makes them accessible to all. Long-winded typing—tiring
and dull for younger children—is replaced with a simple jigsaw-like drag-and-drop environ-
ment, which nevertheless encourages programmatic thinking and introduces the core con-
cepts used by all programming languages.
Oicially considered a program for ages eight and above, but accessible to even younger pro-
grammers with a little help and guidance, Scratch is deceptively powerful. Behind its colour-
ful and mouse-driven user interface is a programming language that includes impressive
multimedia functionality. It should come as no surprise then that, of the more than two-
and-a-half million Scratch projects shared by users of the software on the oicial website, the
majority are games.
Encouraging children to learn how to make their own games can be a great way of sneaking a
little learning into their playtimes. Scratch's friendly user interface and excellent handling of
core concepts mean that children are unlikely to get frustrated by a sudden steep learning
curve. Better still, the concepts learned in Scratch ofer an excellent foundation for progres-
sion to a more lexible language like Python (see Chapter 11, “Python Basics”).
Even before moving on to another language, Scratch ofers more than just a framework for
games. It can be used to create interactive presentations and cartoons, as well as interfaces
with external sensors and motors through the use of add-on hardware such as the PicoBoard
and the LEGO WeDo robotics kit.
he recommended Debian distribution for the Raspberry Pi comes with the latest version of
the Scratch development environment pre-loaded, so if you've been following the recom-
mendations throughout this topic you're ready to start. If you're using a diferent operating
system, visit the oicial Scratch website at http://scratch.mit.edu to download the
software—and you can ind versions for Windows and Apple's OS X in the same place.
Search WWH ::




Custom Search