Re:The impoliteness of overriding methods
by MartinCron on Wednesday December 19, 2012 @06:52PM
(#4945522)
You mean the template pattern as described in GOF? Very nice nice and underused pattern
The template pattern was when I finally "got" design patterns, realizing that they were ways of describing and communicating (some) things that I was already doing.
Re:The impoliteness of overriding methods
by helpermethod on Thursday December 20, 2012 @08:18AM
(#4947545)
Actually I think when Java will finally introduce anonymous functions the Template Pattern will be obsolete. The strategy pattern is IMHO much more flexible and can be used everywhere where the template pattern is used.
More "traditional" OO like C++ or Java let the developer choose. The "traditional" way gives you more flexibility and more ways to shoot yourself in your foot.