Grade 9 Computer Science · Abstraction

Summary practice — abstraction

Ten exercises over the name, the hiding, the leak, the levels and the price.

What you can leave unknown

A name and a promise, what to hide and what to reveal, leaks, levels, and the price of a wrong abstraction. These exercises check whether you already ask of every function what its user needs to know, and what they can leave unknown.

The unit gave a name to the idea that stood behind the previous three years.

LessonThe central idea
1A name, a promise, and hidden detail
2One hides “how”, reveals what affects
3Every abstraction leaks; not every leak is worth studying
4In each function, one level of abstraction
5A wrong abstraction costs more than duplication
7 flashcards: a term or question on one side (Abstraction, What may be hidden, What must be revealed, A leaky abstraction, Levels of abstraction, A wrong abstraction, The diagnostic question) and the explanation on the other. They can be shuffled and marked as known.