rtghan / FinancialOrganizer

3 stars 0 forks source link

Possible design approach: using a Facade for the financial statistics #13

Open rtghan opened 10 months ago

rtghan commented 10 months ago

One of the main functionalities of our program is for the user to be able to see various statistics in terms of how their spending, saving, and investment activity reflects on the budget that they have specified. However, this requires many different calculations regarding each of spending, saving, and investment.

Thus, I believe that it might be a good idea to make this use case (computing statistics) make use of the Facade design pattern, and then delegate the responsibility of computing statistics for spending, saving, and investment respectively to their own subclasses.

Although, it may turn out that the code is relatively simple in reality, so this is just a possible suggestion, and not something we need to ensure the implementation of the statistics use case adheres to.