Dish washing and the Chain of Responsibility Pattern have a few things in common.
In our house, cleaning out the dishwasher is a shared chore. My son starts the unloading process by removing a dish or utensil from the dishwasher. If he can put it away, then he does. If the proper location for the dish is out of his reach, then he passes it to his mother. She then goes through the same process; put the dish away if she can, or pass it off to the next person in line, which is me. When I get handed a dish I will put it away and, since I’m 6’4″ (1.92m) tall, I can reach all of our cupboard space which means that the process ends with me.
If you want to learn more about the Chain of Responsibility Pattern, I suggest you read the full blog post originally posted on the particular blog.
Pss: I know I haven’t been very active on this blog. Unfortunately writing good articles is a time intensive job. I’ve been focusing a bit more on the particular company blog. I’ll try to make sure that I can resume my blogging activities on this blog. Stay tuned