From the course: Java Design Patterns: Structural

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

What is a design pattern?

What is a design pattern? - Java Tutorial

From the course: Java Design Patterns: Structural

Start my 1-month free trial

What is a design pattern?

- [Instructor] A design pattern is a way of structuring codes to solve a specific problem. The aim is to make use of solutions to common problems and make code more elegant and flexible. Design patterns don't require knowledge of any complex or obscure codes to be able to use them, but knowing how to use the right design pattern in the right situation will make you a much better developer. Often, using a design pattern will make the code simpler, shorter, and more elegant by allowing it to be reused in other places. The concept of design patterns originally came from a book called "Design Patterns: Elements of Reusable Object-Oriented Software," which is co-written by four different authors. They're often referred to as the gang of four, and the book is often credited with being a milestone in how software is written. One of the key advantages of using design patterns is that they are a way of reusing other people's…

Contents