Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    I like this but the OP is looking for an explanation for developers. An initial abstraction is good, but sooner or later, it would need a real life example. Commented Feb 21, 2019 at 12:48
  • 1
    @RobbieDee: When the purpose of the pattern is clear, its implementation tends to become clear as well. For example, Marc's answer is absolutely correct, but I feel like the explanation is getting bogged down by the complex nature of the example situation he uses. This boils down to "If you want to build a ship, don't drum up people to collect wood and don't assign them tasks and work, but rather teach them to long for the endless immensity of the sea.". Rather than explain what to do, I prefer explaining why to do it. Commented Feb 21, 2019 at 12:58
  • 2
    You're right of course, but I can't help but think I'd need a tangible example - such as not having a real file system or database to whet my appetite but maybe that is just my narrow developer view :) Commented Feb 21, 2019 at 13:09