Design Patterns · Senior · Question 21 of 75

What is temporal coupling?

Explanation

For example, client.init() must be called before client.send(), or there's an error. Better to make the wrong order impossible: a factory that returns a ready object, or a Builder that hands out the object only after the mandatory steps.

Further reading

Problem with a question

Design Patterns · Senior · question 21

Test yourself

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

Take this quiz