Design Patterns · Senior · Question 21 of 75
What is temporal coupling?
- ✓Correct answer: Call order matters, but the interface doesn't express it
- 2Modules depend on the system's current date and time
- 3Components render at different times because of Suspense
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.