One of the Big Ideas of the Computer Science Principles course is Abstraction. As we will see throughout the course, abstraction is an important concept and practice in computer science. But what exactly is abstraction? This lesson is provides a quick introduction to this key concept.
This lesson introduces the concept of abstraction, which is one of the seven big ideas. This will be one of many lessons in the course that focuses on abstraction. In this first look, the focus is on the everyday concept and promotes the idea that the process of abstraction is a fundamental element of human thought and language. Through a number of examples of abstraction in everyday life as well as in computing, students explore and reflect on what abstraction is and how it is exemplified in their own worlds.
Make sure to view the PowerPoint about Abstractions in the Assignments pane, and complete your Portfolio items.
Abstraction Concepts in App Inventor: Critical Thinking
This lesson also makes an initial connection to how abstraction is used in programming. The examples of an App Inventor variable and an App Inventor procedure are shown as examples of data abstraction and procedural abstraction respectively, thereby reinforcing the enduring understanding that abstractions are a fundamental element of building computer programs and other computational
Programmers create an abstraction by defining a procedure: a named sequence of operations. Once you name a bunch of operations, you can ignore the details. Procedures are sometimes called sub-procedures or functions. Here's an example: When you brush your teeth in the morning, you
- Open the cabinet
- Grab your brush and paste
- Put some paste on your brush
- Open your mouth
- Push the brush across your teeth
Now when a dad tells a kid to brush his teeth, he doesn’t want to explain all these steps each time. When the dad says, “brush your teeth”, he is making a procedure call. ‘Brush your teeth’ is an abstraction for all the many steps involved.