Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Decision

Description

Problem/Issue

Logincontroller contains both the logic and sends the response
DecisionMake a new class loginResource wich which is responsible for only sending the response
AlternativesMake a god class
ArgumentsIf one class has to many responsibilities it doesn't obey the SOLID principle (BMC, 2022)

...

Delete Graph

sequence diagram graph

Image RemovedImage Added

The crewmember deletes a graph on the webpage. the front-end does a call to the back-end. This activates the getAllRaces method in the RaceResource. The resource is only responsible for returning the response so it gets delegated to GraphResource. The GraphService delegates this to the GraphDAO because getting the data from the database is not the responsibility of the controller. In the GraphDAO to delete the graph in the database. The benefit of this structure is that you can easily swap the classes which results in low cohesion and high coupling. This structure is based of the the layer pattern.

...