This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm studying the gang of four book to add more patterns to what I know. And I've stumbled across the chain of responsibility pattern.
From what I read from the book and the internet. I saw two different approaches:
1) Traverses whole tree of successions and applies every handle that can do something with the data. This seemed like a if applicable decorate.
2) This one was traverse the tree until someone can do something about it, if it ends have a default.
The main problem is that I can't see myself using them. Since, most internet examples aren't really CoR but some mock of Strategy. In what cases can I really say
this is without a doubt CoR (Chain of Responsibility).