State Pattern

Preview

Learn the State pattern in plain language — change behavior cleanly as an object's state changes, without a tangle of flags. Code in Python, Java, Go, and TypeScript.

Sign in to read the full chapter.

Checking access…