I believe that DTOs should be a thing of the past. Yet, it seems their usage is still widespread.
Let’s continue learning design patterns by implementing the Adapter, Facade, Template, Iterator, and State patterns using Java.
To understand the philosophical and historical perspective on the Gang of Four’s design patterns, I made a short, 10-minute video, which was also my PluralSight Author Audition.
I came up with my own examples to understand design patterns further. Try downloading the code and see if it helps you in comprehending the patterns in a better way.
Some brief code snippets follow each pattern so you can get quick demonstrations. Feel free to bookmark this article as a quick reference/cheat sheet for when you want to quickly review each of them.