Design Patterns · Junior · Question 29 of 75

What is the Interface Segregation Principle (ISP) about?

Explanation

An Avatar component that takes the whole user object with dozens of fields depends on too much. It's better to pass src and name. Narrow interfaces simplify reuse and tests.

Further reading

Problem with a question

Design Patterns · Junior · question 29

Test yourself

Take the Design Patterns · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz