1 / 8

Detecting patterns and antipatterns in software using prolog

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 ):-

dillian
Download Presentation

Detecting patterns and antipatterns in software using prolog

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Alecsandar STOIANOV Detecting patterns and antipatterns in software using prolog

  2. Introduction Legacy software

  3. Patterns & Antipatterns

  4. 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).

  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

  7. Results 2

  8. Questions & Answers?

More Related