AlgoViz

SOLID in one page

medium 45 min

Five principles for classes that can be changed without fear: single responsibility, open/closed, Liskov substitution, interface segregation and dependency inversion.

Watch lesson5:16

Check yourself

One question at a time. Each answer explains why.

Question 1 of 13

Score 0
conceptual

`OrderManager` writes to Postgres, formats JSON and sends SMS. Which principle is violated first of all?

Pick an answer to see why.

Flashcards

Say your answer, then reveal it.

Card 1 of 14

Recall

What is the core of the open/closed principle?

Say your answer, then reveal it.

These cards come back in Today, just before you would forget them.