Heads up! To view this whole video, sign in with your Courses Plus account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Observer Design Pattern using Java!
You have completed Observer Design Pattern using Java!
Preview
In order to get that "I need the observer feeling", let's take a look at a quasi-complex multi-threaded code base, and try to make some changes to it.
Learn more
- Java SE tutorial - Reduction for more information on groupingBy and the concepts behind it.
- Java SE tutorial - Concurrency and specifically Executors
- Java SE tutorial - Abstract Methods and Classes
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
When you're developing you should not
start out with a pattern in mind.
0:00
Only use patterns when
you actually need them.
0:00
Now again, this is because using a pattern
can cause a lot of overhead, but
0:02
when you need it, you'll feel it.
0:07
Now, I realize that understanding that
feeling when you aren't even sure what it
0:09
feels like is probably
pretty hard to imagine.
0:13
So what I've done is to build up a rather
complex multi-threaded application,
0:15
to try and help you have that,
I need the observer pattern, feeling.
0:20
So, here's the scenario.
0:25
Let's imagine that we,
0:26
you and I, we work for a company that
helps provide consultation to restaurants.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up