Design Patterns · Middle · Question 73 of 75

Why is "Adapter" useful when replacing a date library?

Explanation

Wrapping wide third-party APIs behind a narrow interface limits how many files a migration touches.

Further reading

Problem with a question

Design Patterns · Middle · question 73

Test yourself

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

Take this quiz