1 / 8

Detecting Patterns and Antipatterns in Software Using Prolog

This paper explores the identification of design patterns and antipatterns in software development using Prolog. We focus on the Observer pattern, detailing the relationships and components involved, such as Project, Subject, and various observers and subjects. Additionally, we examine the God Class antipattern, where a single class assumes excessive responsibilities, leading to poor design and maintainability. Through a series of results, we aim to provide insights into effective pattern detection and the implications of antipatterns on software quality.

dillian
Télécharger la présentation

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