You Can Do an Hour of Code with SAS CodeSnaps


This week volunteers around the world, including many from SAS, are entering classrooms to lead an Hour of Code. Guiding a class full of eager students through that hour code activity is an awesome experience. It's also fairly easy, requiring no--or very little--expertise because of the vast number of readily available resources designed just for CSEdWeek. CodeSnaps is our new app for learning to code; all you need is one iPad and one robot for a classroom full of learners. Using printed, tangible coding blocks, students create programs that, when scanned by the CodeSnaps app, can be executed on a robotic ball. We wanted to make CodeSnaps easy for volunteers to use with a class, so we developed a coding activity that requires collaboration and even getting up and moving around, which is great for young learners.







Here is what you need to get started with CodeSnaps and an Hour of Code:

Oh, and one more thing! Here is a script to guide your Hour of Code activity with CodeSnaps. It even includes an example of what to say. Computer Science can be challenging (and we love that), but we hope you find leading an Hour of Code is not with these resources.

Below you'll find the contents of the linked script:

1. Introduce yourself.

Example: Welcome to the Hour of Code! I am Dr./Ms./Mr. Code, and I volunteered to help with an Hour of Code because computer science is important, fun, and rewarding.

2. Introduce computer science, Computer Science Education Week, and the Hour of Code.

Example: Raise your hand if you can answer this question: What is computer science?  [Possible responses: programming, coding, creating things with a computer, solving problems.] Here’s one way to define computer science: solving problems using a computer, often by writing code.

This is Computer Science Education Week, and millions of students will try an Hour of Code to learn about this exciting field. How excited are you about starting our activity today?

3. Describe why computer-science knowledge is important.

Example: Raise your hand if you can tell me why it’s important to know about computer science and how to code. [Possible responses: college, jobs, games, fun.] Great opportunities—and lots of jobs—await those who study computer science. More than 500,000 computer-science job openings exist in every state, in every industry. Speaking of every industry, where might we find computer science or programming in action? [Possible responses: games, mobile phones, computers, other entertainment.] Computer science is especially exciting because you can apply it in whatever field you find exciting. Interested in fashion? There are websites and apps that need to be built. Interested in being a veterinarian? You can solve mystery illnesses by analyzing data with code.

[Optional] How does computer science affect your daily life? What are you interested in, and how might you use computer science?

4. Video overview of the Hour of Code.

After connecting to the smartboard, projector, or other display, play the following linked video from containing celebrities endorsing the Hour of Code.

Two-minute video from

5. Describe the agenda.

Example: Today we’re going to learn about computer science and complete an activity in which YOU will write code. How many of you have written code before?

SAS CodeSnaps

Example: In this activity, you will write code with paper blocks to navigate a Sphero robot through an obstacle course. To do this, you will work in teams of three. Each team will consist of a domain expert, a software developer, and a tester. The domain expert will investigate the obstacle course, draw a picture, measure the course, and make notes to guide the software developer, who will write the program using the paper blocks. When you think your program is ready, the tester will let me know, and I will scan your code into the iPad; the tester will then see how well the robot navigates the course. It’s likely the tester will find some small mistakes, known as software bugs. The team will work to fix these bugs until the robot navigates the course successfully.

Leader notes: You’ll likely need to encourage teams to assign roles and begin. Help the domain expert get started. Remind them that the Move Forward blocks use meters! This activity is good for leaders who are comfortable with iPads and Bluetooth-connected devices. For K-2 students, you may want to write the distance values on the course. Check out the obstacle course lesson here:

Note: Download SAS CodeSnaps here, for free: videos for CodeSnaps can be found here:

6. Wrap-up.

Example: Can some of you share what you learned today? [Possible responses: how to code, why it’s important to be exact, specific, and detailed.] I hope you learned that computer science is a challenge you can meet and that it can be a lot fun.

If time allows, you may want to play this video as a finale: (five minutes from

Be sure to download this script as a PDF.


About Author

Scott McQuiggan

Scott McQuiggan leads SAS® Curriculum Pathways®, an interdisciplinary team focused on the development of no-cost educational software in the core disciplines at SAS. He received his Ph.D. in Computer Science from North Carolina State University in 2009, where his research focused on affective reasoning in intelligent game-based learning environments. His research has been published in more than 30 journal articles and refereed conference proceedings, and been recognized through several best paper nominations including Best Student Paper Award at the International Conference on Affective Computing and Intelligent Interaction.

Leave A Reply

Back to Top