Java Design Patterns & SOLID Design Principles
- Descrição
- Currículo
- FAQ
- Revisões
Course Overview
This course starts with SOLID Design Principles in Java. It will then provide a comprehensive introduction to Java Design patterns with practical, hands on exercises.
What are SOLID Design Principles?
SOLID design principles are almost a mandatory skill for every Java developer. These principles enable you to write most reusable & clean Java code in your projects.
You’ll learn SOLID Principles which are:
Single Responsibility Principle
Open-Closed Principle
Liskov Substitution Principle
Interface Segregation Principle
Dependency Inversion Principle
All these principles are explained in detail and you’ll refactor existing Java code and apply these principles in hands on exercise along with me.
Then we move on to Java Design Patterns.
To learn about the design patterns using Java programming language we’ll discuss:
-
Learn what kind of problems are solved by each design pattern.
-
Discuss various roles in the design pattern using UML diagrams.
-
We’ll use UML of example that we are going to solve as well as UMLs from gang of four book
-
Discuss how the design pattern is applied in the example & how various parts fit together.
-
Hands on example using Java in Eclipse IDE that uses the design pattern.
-
Various design & implementation considerations for every design pattern.
-
Discuss how the design pattern varies from another similar pattern.
-
See where a design pattern is used in real life.
This course covers all the classic design patterns from the Gang of Four (GoF) book. In addition we’ll discuss few newer design patterns that are used in modern software development. We’ll discuss how a pattern can be implemented in various ways & how we can tailor them to be used with Java language.
This course is the Most Comprehensive course on Java Design Patterns that you can find.
So, what are Design Patterns & why should you care?
Design patterns represent solutions to common problems, which you face while doing programming. These solutions are reusable and can solve a wide variety of problems. These became popular with the release of classic book on the subject “Elements of Reusable Object-Oriented Software” writtern by Erich Gamma, John Vlissides, Ralph Johnson and Richard Helm (these authors are known as Gang of Four and so the common abbreviation GoF book 🙂 )
One problem while studying this book as a Java developer is that the authors are using C++ to demonstrate a pattern, which was the most popular & widely used programming language at the time. So you’ll see examples using C++ language features like pointers, copy constructors etc. which do not translate easily to Java.
This course will help greatly in that aspect. We’ll study each design pattern using Java to its full potential.
What is covered in this course?
This course covers SOLID Design Principles and 26 design patterns in all. We’ll cover following:
-
SOLID Design Principles: Learn about Single Responsibility, Open-Closed, Liskov substitution, Interface segregation & Dependency Inversion principles.
-
Creational Design Patterns: Simple Factory, Abstract Factory, Factory Method, Singleton, Builder, Prototype & Object Pool
-
Structural Design Patterns: Object & Class Adapters, Decorator, Bridge, Facade, Static & Dynamic Proxy, Flyweight & Composite
-
Behavioral Design Patterns: Chain of Responsibility, Command, Interpreter, Mediator, Iterator, Memento, Observer, State, Strategy, Template Method, Visitor, & Null Object
Each design patterns is also implemented in a follow along coding lecture.
How the Course is Structured?
We focus on live coding along with theory. Each design is implemented in a live coding session (which you can follow along) as well as discussed with UML & slides. After studing a section you’ll know almost everything about the design pattern.
This course is created with focus on being used as a reference. So each design pattern is discussed in it’s own section with a separated lecture for each aspect of the design pattern. Each section is organized as following lectures:
1. Introduction – This lecture introduces pattern, a problem that it solves & a formal UML diagram
2. Implementation Steps – This lecture will discuss how you’ll implement this pattern in Java.
3. Example UML – We discuss the UML of the hands on problem we’re going to solve.
4. Implementation – In this lecture we’ll implement the design pattern in Java using Eclipse IDE
5. Implementation & Design Considerations – Some important points about performance, variations & practical advice on using the pattern
6. Real World Example – In this lecture we’ll see how the pattern is used in real life by Java’s own class library & popular frameworks like Spring, JSF
7. Comparison with Similar pattern – See how the pattern is different than another similar pattern.
8. Pitfalls – Many pattern have some drawbacks. This lecture will show you what those are.
9. Summary – This lecture will summarise all the information about the pattern.
As you can see, by breaking a single design pattern in smaller topics, you can easily watch only those parts that you need in future.
What is provided with the Course?
-
We have provided all code samples from the hands on lectures. You can download the starter code & follow along or you can download the finished code to study on your own.
-
All UML diagram with description of each role in the design pattern is provided as PDF in summary video. These slides are enough to quickly revise design pattern structure.
-
A PDF guide to all design pattern summaries with code samples and UML diagrams.
Who should take this Course?
-
Beginner as well as experience Developers.
-
Software Designers & Architects.
-
1Section IntroductionVídeo Aula
-
2Single Responsibility PrincipleVídeo Aula
Learn about the Single Responsibility Principle here. This is the first one from SOLID design principles.
-
3Single Responsibility Principle - Hands onVídeo Aula
Let's try out the Single Responsibility principle with some java code.
-
4Open-Closed PrincipleVídeo Aula
The second principle from SOLID design principles.
-
5Open-Closed Principle - Hands OnVídeo Aula
Try out the open-closed principle in a Java hands on example.
-
6Liskov Substitution PrincipleVídeo Aula
Let's learn about Liskov substitution in this lecture.
-
7Liskov Substitution Principle - Hands OnVídeo Aula
We'll see the famous example of Liskov Substitution principle.
-
8Interface Segregation PrincipleVídeo Aula
This easy to follow but important principle is explained in this lecture.
-
9Interface Segregation Principle - Hands OnVídeo Aula
See how interface segregation can be applied in Java code.
-
10Dependency Inversion PrincipleVídeo Aula
The famous DI principle.
-
11Dependency Inversion Principle - Hands OnVídeo Aula
Let's try out the dependency inversion ourselves in this Java hands on example.
-
12SOLID Principles QuizQuestionário
Let's test your knowledge about SOLID principles in this quiz.
-
16Builder - IntroductionVídeo Aula
In this video we'll introduce the builder design pattern. Builder is one of the most easy & useful creational design patterns. It can be used with legacy code as well as new code.
-
17Builder Implementation StepsVídeo Aula
Let's talk about the typical steps you'd follow when implementing builder design pattern.
-
18Builder - Example UMLVídeo Aula
In this video we'll go over the UML diagram of the example which we're going to implement in next video. This video will clarify role of each class we'll be either using or implementing ourselves.
-
19Builder - Implementation Part 1Vídeo Aula
Let' s implement builder design pattern now in Java. In this video we are going to try out one way to implement this pattern.
-
20Builder - Implementation Part 2Vídeo Aula
In this video we're going to implement builder in another fashion. n fact this is the way you'll often see builder used in real life projects.
-
21Builder - Implementation & Design ConsiderationsVídeo Aula
In this video we're going to look at some points you should consider while designing & implementing this design pattern.
-
22Builder - ExamplesVídeo Aula
-
23Builder - Comparison with PrototypeVídeo Aula
Now let's compare builder pattern with Prototype design pattern.
-
24Builder - PitfallsVídeo Aula
This video discusses short comings of builder design pattern.
-
25Builder - SummaryVídeo Aula
In this video we will discuss summary of builder design pattern
-
26Quiz - Builder Design PatternQuestionário
Let's test your knowledge of the builder design pattern. In case you get some of these wrong, don't worry! You can go back and watch any lectures on builder pattern again and then try again.
-
27Simple Factory - IntroductionVídeo Aula
In this video we'll introduce Simple factory.
-
28Simple Factory - Implementation StepsVídeo Aula
Let's talk about the typical steps you'd follow when implementing a simple factory.
-
29Simple Factory - ImplementationVídeo Aula
Let' s implement a simple factory now in Java.
-
30Simple Factory - Implementation & Design ConsiderationsVídeo Aula
In this video we're going to look at some points you should consider while designing & implementing simple factory
-
31Simple Factory - ExampleVídeo Aula
-
32Simple Factory - Comparison with Factory MethodVídeo Aula
Now let's compare simple factory with factory method design pattern
-
33Simple Factory - PitfallsVídeo Aula
This video discusses short comings of simple factory.
-
34Simple Factory - SummaryVídeo Aula
In this video we will discuss summary of simple factory
-
35Quiz - Simple FactoryQuestionário
Let's test your knowledge on Simple Factory. In case you get any of these wrong, don't worry! You can always go back and watch the lectures again to revise.
-
36Factory Method - IntroductionVídeo Aula
In this video we'll introduce the builder design pattern.
-
37Factory Method - Implementation StepsVídeo Aula
Let's talk about the typical steps you'd follow when implementing factory method design pattern.
-
38Factory Method - Example UMLVídeo AulaIn this video we'll go over the UML diagram of the example which we're going to implement in next video. This video will clarify role of each class we'll be either using or implementing ourselves.
-
39Factory Method - ImplementationVídeo Aula
Let' s implement factory method design pattern now in Java. In this video we are going to try out one way to implement this pattern.
-
40Factory Method - Implementation & Design ConsiderationsVídeo AulaIn this video we're going to look at some points you should consider while designing & implementing this design pattern.
-
41Factory Method - ExampleVídeo Aula
-
42Factory Method - PitfallsVídeo Aula
This video discusses short comings of factory method
design pattern. -
43Factory Method - SummaryVídeo Aula
In this video we will discuss summary of factory method design pattern
-
44Quiz - Factory MethodQuestionário
Let's test your knowledge on Factory Method. In case you get any of these wrong, don't worry! You can always go back and watch the lectures again to revise.
-
45Prototype - IntroductionVídeo Aula
In this video we'll introduce the prototype design pattern. Prototype allows us to use existing objects to create more of them!
-
46Prototype - Implementation StepsVídeo Aula
Let's talk about the typical steps you'd follow when implementing prototype design pattern.
-
47Prototype - Example UMLVídeo Aula
In this video we'll go over the UML diagram of the example which we're going to implement in next video. This video will clarify role of each class we'll be either using or implementing ourselves.
-
48Prototype - ImplementationVídeo Aula
Let's implement prototype design pattern now in Java.
-
49Prototype - Implementation & Design ConsiderationsVídeo Aula
In this video we're going to look at some points you should consider while designing & implementing this design pattern.
-
50Prototype - ExampleVídeo Aula
-
51Prototype - Comparison with SingletonVídeo Aula
Now let's compare prototype pattern with singleton design pattern.
-
52Prototype - PitfallsVídeo Aula
This video discusses short comings of prototype design pattern.
-
53Prototype - SummaryVídeo Aula
In this video we will discuss summary of prototype design pattern
-
54Quiz - Prototype Design PatternQuestionário
Let's test your knowledge on Prototype design pattern. In case you get any of these wrong, don't worry! You can always go back and watch the lectures again to revise.
-
55Abstract Factory - IntroductionVídeo Aula
In this video we'll introduce the abstract factory design pattern.
-
56Abstract Factory - Implementation StepsVídeo Aula
Let's talk about the typical steps you'd follow when implementing abstract factory design pattern.
-
57Abstract Factory - Example UMLVídeo Aula
In this video we'll go over the UML diagram of the example which we're going to implement in next video. This video will clarify role of each class we'll be either using or implementing ourselves.
-
58Abstract Factory - ImplementationVídeo Aula
Let's implement abstract factory design pattern now in Java.
-
59Abstract Factory - Implementation & Design ConsiderationsVídeo Aula
In this video we're going to look at some points you should consider while designing & implementing this design pattern.
-
60Abstract Factory - ExampleVídeo Aula
-
61Abstract Factory - Comparison with Factory MethodVídeo Aula
Now let's compare builder pattern with abstract factory design pattern
-
62Abstract Factory - PitfallsVídeo Aula
This video discusses short comings of abstract factory design pattern.
-
63Abstract Factory - SummaryVídeo Aula
In this video we will discuss summary of abstract factory design pattern
-
64Quiz - Abstract FactoryQuestionário
Now, let's test your knowledge on Abstract Factory design pattern. In case you get any of these wrong, don't worry! You can always go back and watch the lectures again to revise.
-
65Singleton - IntroductionVídeo Aula
-
66Singleton - Implementation StepsVídeo Aula
-
67Singleton - Implementation - Eager SingletonVídeo Aula
-
68Singleton - Implementation - Lazy SingletonVídeo Aula
-
69Singleton - Implementation - Initialization HolderVídeo Aula
-
70Singleton - Implementation - EnumVídeo Aula
-
71Singleton - Implementation & Design ConsiderationsVídeo Aula
-
72Singleton - ExampleVídeo Aula
-
73Singleton - Comparison with Factory MethodVídeo Aula
-
74Singleton - PitfallsVídeo Aula
-
75Singleton - SummaryVídeo Aula
-
76Quiz - SingletonQuestionário
Let's test your knowledge on Singleton design pattern. In case you get any of these wrong, don't worry! You can always go back and watch the lectures again to revise.
-
77Object Pool - IntroductionVídeo Aula
-
78Object Pool - Implementation StepsVídeo Aula
-
79Object Pool - Example UMLVídeo Aula
-
80Object Pool - ImplementationVídeo Aula
-
81Object Pool - Implementation & Design ConsiderationsVídeo Aula
-
82Object Pool - ExampleVídeo Aula
-
83Object Pool - Comparison with PrototypeVídeo Aula
-
84Object Pool - PitfallsVídeo Aula
-
85Object Pool - SummaryVídeo Aula
-
86Quiz - Object PoolQuestionário
Let's test your knowledge on Object Pool design pattern. In case you get any of these wrong, don't worry! You can always go back and watch the lectures again to revise.
