tcrasset / your-budget

Personal budgeting cross platform mobile application, using zero based budgeting. Built using Flutter.
10 stars 1 forks source link

Use Strategy pattern for Goals #34

Open tcrasset opened 3 years ago

tcrasset commented 3 years ago

We could have one different Class for each GoalType.

Also, a different class for all the kinds of MoneyTransactions, so that we could make the add/delete Transactions have less if else statements.

--> This is not the strategy pattern

tcrasset commented 3 years ago

This can be coupled with #36, which uses the Factory pattern (we can use Factory constructors in Dart).

tcrasset commented 3 years ago

Actually, the strategy pattern is not the thing that we want for transactions.