Chain of Responsibility %u2013 Part 1
The chain design pattern enables us to connect objects to each other as if they where chains. Before we can implement this design pattern we will need to update the logic of our core Circle to enable it to store the next link in the chain. In this lecture, we will update the logic of our Circle to enable the implementation of the chain of responsibility design pattern.
Ready to Level Up Your Skills?
Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!
Enroll Now for Free!Chain of Responsibility %u2013 Part 1
- Linking objects to each other in a chain. - no central control each link %u201Cdecides%u201D if to continue. - Ideal for complex animations that effect other objects.
06:10
Chain of Responsibility - Part 2
- Decentralized logic making. - Each link can be changed. - A loop can be created as well.
08:55
Observer- adding and dispatching events
- Announcing events without explicit communication. - Event dispatching and listeners. - Building an Event dispatcher Decorator.
09:01
Observer - removing events
- When you want to stop listening. - Important for memory management. - Implementing a fully functional event dispatcher.
04:46
State
- Different states of an application demand different reactions. - The more aware the main object is to the difference the more it needs to think %u2013 conditions. - Extracting the states to separat
14:26