Chapter 8Keep Interfaces Clear with Classes

An octopus has a brain. But in a way, it has many brains. Neurons run throughout an octopus’s body, so in a sense, it can think with its arms. If its arm is removed from its body, it can still respond to stimulus, change color, and reach and grab for items.

This poses a challenge to researchers. An octopus can think, but not in the way mammals do. It responds similarly—it can remember specific people, prefer certain types of food, and even plan an escape—but the way its consciousness works is unusual. An octopus’s mind is similar but different.

In this chapter, we’re going to explore concepts that are familiar, but they’re also different. Developers have been complaining for years about ...

Get Simplifying JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.