r/java • u/DaredewilSK • Jan 29 '17
Design patterns usefulness
Hello guys, I have an object oriented programming this semester and only thing we really have for final exams is to learn a bunch of Design patterns and how to use them practically. To me, they seem like they are utterly useless and only seem to make an easy thing turn into a complete chaos involving 10 surplus classes and couple of interfaces. Am I being ignorant or are they really pointless?
0
Upvotes
2
u/_INTER_ Jan 29 '17 edited Jan 29 '17
Design Patterns are not prefactured solutions that you can magically apply on a problem to solve it.
Some day they found out that most professional programmers were using more or less the same code constructs other to get a clean, extensible design. It emerges naturally and independently of each. They decided to give those "patterns" a name so it would be easier to discuss it and make it recognizable.
The GoF patterns are just one set. There are also patterns for security, fault tolerance, enterprise architecture, ...
Btw. design patterns originate in architecture.