|
|
|
Ask HN: Are design patterns still a thing?
|
|
13 points
by HerrmannM
2397 days ago
|
|
When I learned C++ 10 years ago, we had a textbook basically teaching C++ through design patterns. I remember them to be mentioned quite regularly, including in job offers. Nowadays, they don't seem as big as they used to be, and I did not hear about them for a while.
What is your recent experience with them? Are they still a thing? |
|
In a sense, design patterns are everywhere. Some easy examples: each time you use a foreach, you are using the iterator pattern. If you use filter or Where on a collection, you are using a visitor pattern implementation.
I would add that people are coming to realize that SOLID principles lead to code that is easier to write, reason about, and maintain. Whereas the GoF patterns were the right knowledge 10 years ago, SOLID principles are the right knowledge for today.