80 likes | 191 Views
Alecsandar STOIANOV. Detecting patterns and antipatterns in software using prolog. Introduction. Legacy software. Patterns & Antipatterns. Observer. observerPattern (Project, SubjectN , ObserverN , ConcrSubjsN,ConcrObserversN , UpdateMsN,AttDetMeths,NotifyMeth ):-
E N D
Alecsandar STOIANOV Detecting patterns and antipatterns in software using prolog
Introduction Legacy software
Observer • observerPattern(Project, SubjectN, ObserverN, ConcrSubjsN,ConcrObserversN, UpdateMsN,AttDetMeths,NotifyMeth):- observer(Observer,ObserverN,Project), subject(Subject,SubjectN,Observer,AttDetMeths,NotifyMeth,UpdateMsN), findall(X,concreteSubject(_,X,Subject),ConcrSubjsN), findall(Y,concreteObserver(_,Y,Observer),ConcrObserversN).
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.
Questions & Answers?