O'Reilly logo

Scratch™ 2.0 Programming for Teens, Second Edition by Jerry Lee Jr. Ford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 13IMPROVING CODE ORGANIZATION

The purpose of this chapter is to teach you different ways of improving how the scripts that make up your Scratch 2.0 projects are written and organized. This chapter covers three ways in which you can improve your scripts. You learn how to use more blocks to create custom code blocks that function as procedures within Scratch 2.0 projects. Procedures help you enhance project organization and maintainability and can significantly reduce the length and number of scripts in your projects. You learn how to improve your scripts through the addition of comments, allowing you to document critical programming logic and make it easier for others to understand why you developed a script the way you did. Lastly, you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required