Design Patterns in Java – Concepts & Hands On Projects
Learn 26 Design Patterns with hands on projects in Java
What Will I Learn?
- You’ll learn total 26 software design patterns in depth & with hands on examples
You’ll be able to write clear & better Java code
You’ll be able to communicate better in design meetings & technical discussions
- You’ll be able to answer interview questions about design patterns with confidence
- You should have a basic knowledge of Java & basic programming concepts
- If you want to follow along, you need any Java code editor & a computer to run it
This course provides a comprehensive introduction to Design patterns in Java with practical hands on exercises. To learn about the design patterns using Java programming language we’ll discuss:
- Learn what kind of problems are solved by a design pattern.
- Discuss various roles in the design pattern.
- Discuss how the 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.
- 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.
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 language to its full potential.
What is covered in this course?
This course covers 26 design patterns in all. We’ll cover following design patterns:
- 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.
Who should take this Course?
- Beginner as well as experience Developers.
- Software Designers & Architects.
- This course will benefit every Java developer, regardless of your experience, you’ll find something to use.
- If you are just beginning your career, then you must take this course. It’ll benefit you most
- If you are working in Java for 1 – 4 years, this course’ll help you advance to next stage in your career
- If you are preparing for interview, this course is a must for you.
- If you are experience developer, this course will help you brush up your software design skills