Download presentation
Presentation is loading. Please wait.
Published byEllen Ferrington Modified over 9 years ago
1
Alecsandar STOIANOV
2
Legacy software Introduction
3
Patterns & Antipatterns
4
Observer observerPattern(Project, SubjectN, ObserverN, ConcrSubjsN,ConcrObserversN, UpdateMsN,AttDetMeths,NotifyMeth):- observer(Observer,ObserverN,Project), subject(Subject,SubjectN,Observer,AttDetMeths,Notif yMeth,UpdateMsN), findall(X,concreteSubject(_,X,Subject),ConcrSubjsN), findall(Y,concreteObserver(_,Y,Observer),ConcrObser versN).
5
God Class This AntiPattern is characterized by a class diagram composed of a single complex controller class surrounded by simple data classes. The key problem here is that the majority of the responsibilities are allocated to a single class.
6
Results 1 SingletonDecoratorObserverStrategyAdapter MePinotMePinotMePinotMePinotMePinot jHotDraw 6.0b1 10455951 95 Java AWT 1.3 333349435493 Java Swing 1.4 1013154968110963017 Java.io 1.4.2 00340135304 Java.net 1.4.2 0001000400 Apache Ant 1.6.2 2134256453913
7
Results 2 Data ClassCall Super Constant Interface God Class Interface Bloat Yoyo Problem (factor = 6) Poltergeist jHotDraw 6.0b1 107201325418 Java AWT 1.323340232702 Java Swing 1.4 5522328648167 Java.io 1.4.213818100 Java.net 1.4.29012000 Apache Ant 1.6.2 338606327925
8
& Answers? Questions
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.