Java Design Patterns and Architecture
- Description
- Curriculum
- FAQ
- Reviews
Discover some of the most useful, important and common design patterns in Java; reusable code patterns that you can use to structure your program and perform common tasks. Includes lots of examples with full source code. “Design Patterns” has been the big buzz phrase in the Java community for some time now, and if you want to be able to write effective Java programs, work as a Java developer or pass exams in Java, you can’t afford to miss out. Fortunately, this course is entirely free 🙂
Take this FREE Java Design Patterns and Java Architecture course right now and learn everything about java design patterns and java architecture.
-
1IntroductionVideo lessonAn introduction to the course.
-
2A Brief History of Software DesignVideo lessonThis is just some notes about software design; partly because I want to explain why I don't know much about formal design methodologies and so won't cover them in this course (even though we will talk a fair bit about software design), partly just to explain what little I do know about it, and partly because I need to get a few things off my chest ....
-
3Front End / Back EndVideo lessonWe'd better start by looking at the most fundamental of design patterns -- so fundamental that it can be overlooked, but it's the pattern that every software developer has in his or her head, and works from as a starting point.
-
4Model-View-Controller: The TheoryVideo lessonIn this tutorial we'll look at the theory behind MVC, before going on to implement an example
-
5Model-View-Controller: In PracticeVideo lessonIn this tutorial we'll set up a basic MVC framework, leaving out the "listener" stuff, which we'll come back to later on.
-
6Observer Pattern: The TheoryVideo lesson
We need the observer pattern in order to complete our model view controller pattern. Even if you don't use MVC, the observer pattern is vital to user interface programming. It's one of the vital structural patterns that hold modern software together. It can also be quite tricky to understand initially, so for that reason we'll go through the theory of it before actually tackling it.
-
7Observer Pattern: An Example Involving ButtonsVideo lessonLet's take a look at one of the easiest (inasmuch as this pattern can be called "easy") usages of the observer pattern; adding handlers to buttons in Swing. Don't worry if you don't know Swing; this code would look pretty much the same for a variety of situations involving timers and other uses of Observer.
-
8Observer Pattern: Implementing From Scratch (with MVC)Video lessonLet's take a look at an example implementation of the observer pattern. In this tutorial I'll make my "controller" listen to my "view" in my MVC implementation, but you could make any object listen to any other object. You just need some kind of a situation where the object being listened to can somehow signal that something has happened for some reason -- for example, a button can be clicked or a timer can trigger. Your other object can then "listen" to the first object.
-
9An MVC ControversyVideo lessonI realised while making this course that it's a controversial issue, whether the model should talk to the view directly or not. Well, controversial among those who like controversy. Most software developers would say that you should decide this based on what you need to implement. The model should never use View classes; everyone agrees on that. Aside from basic stuff like that, things like this are just implementation details and not worth getting too hung up on.
External Links May Contain Affiliate Links read more