3 ms·
The problem with the term "pattern" is that it has 2 different meanings: 1) a guide for how to build/create something. 2) a describable and characteristic arra
by kasey_junk 12y ago
The problem with the term "pattern" is that it has 2 different meanings:
1) a guide for how to build/create something.
2) a describable and characteristic arrangement.
Both can be applied to "design patterns". ie, I'm going to solve a code reuse problem, should I use the strategy or template pattern. Or I'm going to solve this code reuse problem in a novel way in my inheritance based language. I know I'll make an abstract base class that does the reusable stuff and uses some abstract methods to fill in the changing stuff.
So really when people say that "design patterns" are bad, what they really mean are 1) the GoF patterns are only necessary because your language is flawed or 2) people are picking the wrong patterns to solve problems.
But all languages and software systems have patterns, they just might not be cataloged in GoF.