Think of a drone as a black box:
ABSTRACTION: To use a drone, you don’t need to understand its inner mechanics
In a drone light show, thousands of drones work together:
DECOMPOSITION: A big show becomes possible by splitting it into many smaller drone tasks
DECOMPOSITION
ABSTRACTION
With drones, we split the work among many units
In programming, we split code into modules or functions:
Today: we’ll use functions for decomposition
Later: we’ll see how classes (OOP) extend this idea
With the drone, you don’t need to know how it’s built
In programming, a function is like a black box:
Abstraction saves us from messy details
We describe it with function specs or docstrings
Civilization advances by extending the number of operations we can perform without thinking about them. - Alfred North Whitehead (British mathematician and philosopher, 1861–1947)
Civilization advances by extending the number of operations we can perform without thinking about them.
- Alfred North Whitehead (British mathematician and philosopher, 1861–1947)