3 ms·
Design Patterns 15 years later: Interview with GoF
- habitue 17y agoDespite the flak design patterns get these days in some circles, these guys seem eminently reasonable.
- Isamu 17y agoCheck out Erich's comments at the end: > I'm in favor of dropping Singleton. Its use is almost always a design smell. YES. > Factory Method would be generalized to Factory. Yes. > The new members are: Null Object, Type Object, Dependency Injection, and Extension Object/Interface Somebody kill the term "Dependency Injection" - we have never needed an obfuscation of "late binding".
- bfung 17y ago>Somebody kill the term "Dependency Injection" ... Agree enough to take arms and post. Dependency Injection is really just a marketing term; programming via interfaces is mostly what the DI camp is after, and then selling tools/framework support to automagically "inject" implementations. In my opinion, esp. in the Java world, setter injection is code smell.
- hello_moto 17y agoWho sells dependency injection tools these days? I agree that setter injection is bad but unfortunately some Java libraries/frameworks/guidelines have a rule that enforce the developer to create a class with default constructor thus preventing constructor injection.
- joezydeco 17y agoI hate all design-pattern gobbledygook, but Singleton actually has some use in C++ when you want to control the order of constructors for global things. Otherwise you're adding single and double underbars on everything.
- joegaudet 17y agoI think a lot of people have a dislike for OO and for some reason by extension design patterns, which in my mind are more or less the same thing as best practices. Patterns are handy as they provide you with a nice template to solve a common problem, and to provide structure to your designs. As the interview states, eventually everything becomes a big hairy mud ball.
- GFischer 17y agoThey even give a startup idea - some kind of social network for pattern recomendation (design guidelines?): "people that found this pattern useful have also liked this one..."
- strait 17y ago"4 girls in your area want to discuss Chain-of-responsibility." haha