Building at a Single Level of Abstraction
Learn how to tackle different levels of abstractions in code.
We'll cover the following...
We'll cover the following...
Handling abstractions
As we’re building the quiz, we’ll continue to build single-purpose functions that are easy to compose. One of the things that makes code easy or hard to read is the number of abstractions a programmer has to deal with at once. In programming, abstraction is just a way to simplify a complex idea or action. It turns out that we can handle many different abstractions if those abstractions are:
-
Well named
-
Well organized
-
Close together
This concept is the single level of abstraction ...