I have been working with J2EE based systems for 5+ years now and the most commonly used patterns are (a) singleton - because everyone wants to use a pattern and this is easiest to implement (or so they think) (b) facade - the session facade EJB Design Pattern (sic) made this very popular. It also helps that one doesn't need to do anything to implement this pattern. Apparently, all you need to do is to suffix the class name with "Facade" Template Method (as it is actually explained in GoF) is not to be found all that commonly. Most of the times, people don't take the effort required to identify which part of the logic belongs in the base class and which parts are hot spots. I have seen entire methods copy-pasted into subclasses to modify a couple of lines. regards, Sriram Gopalan
________________________________ From: [EMAIL PROTECTED] on behalf of Richard P. Gabriel Sent: Wed 7/6/2005 1:12 PM To: Jan Hannemann; [email protected] Subject: RE: [patterns-discussion] Which patterns are more frequently used? There will be a related paper at OOPSLA this year: http://www.oopsla.org/2005/ShowEvent.do?id=29 which will talk about automatically finding things a little more primitive than patterns and drawing some conclusions from that. The methodology *might* be applicable at least in part to answering the overall question posed of the distribution of pattern usage in real systems. (The authors of the paper are not patterns fans, but the paper was shepherded (by Kent Beck) to eliminate problems related to that.) -rpg- _______________________________________________ patterns-discussion mailing list [email protected] http://mail.cs.uiuc.edu/mailman/listinfo/patterns-discussion _______________________________________________ patterns-discussion mailing list [email protected] http://mail.cs.uiuc.edu/mailman/listinfo/patterns-discussion
