Design Patterns in Java

4.3 (4041)
Learning paid
10.5 hours course
Course by Udemy
What will you learn?
Recognize and apply design patterns
Refactor existing designs to use design patterns
Reason about applicability and usability of design patterns
About the course

Course Overview

This course provides a comprehensive overview of Design Patterns in Java from a practical perspective. This course in particular covers patterns with the use of:

  • The latest versions of the Java programming language
  • Use of modern programming approaches: dependency injection, reactive programming and more
  • Use of modern developer tools such as IntelliJ IDEA
  • Discussions of pattern variations and alternative approaches

This course provides an overview of all the Gang of Four (GoF) design patterns as outlined in their seminal book, together with modern-day variations, adjustments, discussions of intrinsic use of patterns in the language.

What are Design Patterns?

Design Patterns are reusable solutions to common programming problems. They were popularized with the 1994 book Design Patterns: Elements of Reusable Object-Oriented Software by Erich Gamma, John Vlissides, Ralph Johnson and Richard Helm (who are commonly known as a Gang of Four, hence the GoF acronym).

The original book was written using C++ and Smalltalk as examples, but since then, design patterns have been adapted to every programming language imaginable: C#, Java, PHP and even programming languages that aren't strictly object-oriented, such as JavaScript.

The appeal of design patterns is immortal: we see them in libraries, some of them are intrinsic in programming languages, and you probably use them on a daily basis even if you don't realize they are there.

What Patterns Does This Course Cover?

This course covers all the GoF design patterns. In fact, here's the full list of what is covered:

  • SOLID Design Principles: Single Responsibility Principle, Open-Closed Principle, Liskov Substitution Principle, Interface Segregation Principle and Dependency Inversion Principle
  • Creational Design Patterns: Builder, Factories (Factory Method and Abstract Factory), Prototype and Singleton
  • Structrural Design Patterns: Adapter, Bridge, Composite, Decorator, Façade, Flyweight and Proxy
  • Behavioral Design Patterns: Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Null Object, Observer, State, Strategy, Template Method and Visitor

Who Is the Course For?

This course is for Java developers who want to see not just textbook examples of design patterns, but also the different variations and tricks that can be applied to implement design patterns in a modern way. For example, the use of recursive generics helps us build fluent interfaces even when inheritance is involved.

Presentation Style

This course is presented as a (very large) series of live demonstrations being done in IntelliJ IDEA and presented using the Kinetica rendering engine. Kinetica removes the visual clutter of the IDE, making you focus on code, which is rendered perfectly, whether you are watching the course on a big screen or a mobile phone. 

Most demos are single-file, so you can download the file attached to the lesson and run it in IntelliJ, Eclipse or another IDE of your choice.

This course does not use UML class diagrams; all of demos are live coding. I use IntelliJ and various Maven packages where necessary.

An overview of the different topics that we'll encounter in this course as well as some info on the way the course is organized and a few words about the instructor (that's me!)
SOLID Design Principles
Learn about the SOLID design principles used in software engineering
Single Responsibility Principle (SRP)
The Single Responsibility Principle (SRP)states that a class should have a single reason to change (i.e., one primary responsibility). The opposite of an SRP-adhering class is an antipattern calledGodObject.
Open-Closed Principle (OCP)
A look at theOpen-Closed Principle (OCP)through the prism of the Specification pattern. Two for the price of one!:)
Liskov Substitution Principle (LSP)
The Liskov Substitution Principle (LSP)suggests that you should be able to substitute a base class for a derived class. What does it mean?Watch the lesson to find out.
Interface Segregation Principle (ISP)
The InterfaceSegregation Principle(ISP)suggests that you split interfaces into smaller interfaces so that clients don't have to implement things they don't need. Also related to the YAGNI(You Ain't Going to Need It)principle.
Dependency Inversion Principle (DIP)
The Dependency Inversion Principle (DIP)states that high-level modules should not depend on low-level modules but on abstractions. Ialso suggests a preference for depending on abstractions (interfaces/abstract classes)over concrete implementations.
Learn to implement the Builder design pattern
Gamma Categorization
A brief note about the three categories of design patterns: creational, structural and behavioral.
  • Good understanding of Java
  • Familiarity with latest Java features
  • Good understanding of object-oriented design principles
  • A computer with the latest JDK and (hopefully) an IDE
Dmitri Nesteruk
Dmitri Nesteruk
Software/Hardware Engineering • Quant Finance • Algotrading
Udemy courses are suited to professional development. The platform is organized in such a way that it is experts themselves that decide the topic and when the course will start. All supporting documents are made available to you for lifetime access. On this platform, you can find a course on about any subject, and that is no exaggeration – from a tutorial on how to ride a motorcycle, to managing the financial markets. The language and the course format are established by the teacher. This is why it is important to read the information about the course carefully before parting with any money.
Comments (4041)
Like any other website, konevy uses «cookies». These cookies are used to store information including visitor's preferences, and the pages on the website that the visitor accessed or visited. The information is used to optimize the users' experience by customizing our web page content based on visitors' browser type and/or other information. For more general information on cookies, please read the «What Are Cookies» article on Cookie Consent website.