
The challenge for the Scratcher, though, is staying true to the principle of DRY between projects.

Within a project/sprite, you can use clones and costumes to avoid having duplicate sprites if you need many sprites doing essentially the same thing.Within a sprite, custom blocks are effectively a shortcut that you can use to reduce the number of times the exact same code pattern appears.

In Scratch, there are a couple of ways this can be done: The phrase “Don’t repeat yourself”, often abbreviated as DRY, is an application of the computational thinking concept of abstraction and it means trying to avoid duplication in your code as much as possible. Along the way, you will also learn about the computational concept of “libraries” and how they also help to support the principle of “Don’t Repeat Yourself”. Using the Backpack is one way to avoid repeating yourself as you develop new and more complex Scratch projects.
#ANOTHER WORD FOR SAVING A S SPRITE IN SCRATCH HOW TO#
In this quick tutorial, I will show you how to use the Scratch online editor’s “Backpack” to help you move snippets of code and other things between Scratch projects. If you do not use the online editor, you will not be able to find some of the things referenced in this tutorial. Note: This tutorial is for one of the few features of Scratch that is only available through the online editor.
