r/learnjava • u/[deleted] • May 15 '21
Design pattern practice
I've recently got an internship position working on Web applications using Java and Spring. The only design patterns that I know are Singleton, MVC, DAO and Observer.
Any suggestions of other Design Patterns used in this industry, maybe some documentation with practice examples that I can implement myself?
Thanks in advance!
12
8
u/theAviCaster May 15 '21
i highly recommend going through the book head first design patterns
2
u/super-frigobar May 15 '21
Great suggestion!
3
u/pipestream May 15 '21
Christopher Okhravi has some pretty good video walk-throughs of them on YouTube.
7
1
4
u/Newtonheadbangs May 15 '21
A good GitHub link
https://github.com/iluwatar/java-design-patterns
A great Udemy course https://www.udemy.com/course/design-patterns-java/
3
u/mw52588 May 15 '21
Another great design pattern is builder pattern. It just further simplifies the creation of objects especially when dealing with massive DTO/DAO objects that can easily have 20+ fields in it. Also, not really a design pattern but Lombok really helps with this design pattern.
21
u/[deleted] May 15 '21 edited May 15 '21
The most fundamental are Design Patterns (aka, Gang of Four). The Wikipedia page has a good summary.
Next higher up is Patterns of Enterprise Application Architecture by Martin Fowler. This github page has a good summary.
Domain Driven Development doesn't exactly have design patterns, but design principles. When you get an understanding of the design patterns, you should start reading books like this. Martin Fowler has some good articles.
I would highly suggest getting and reading the books.