Timeline for Do db calls in constructors lead to more DRY code?
Current License: CC BY-SA 4.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 11, 2022 at 14:21 | comment | added | Greg Burghardt | "First of all, constructors should show the dependencies of a class. In your case, Semester needs the AvailableCourses to work correctly. Why hide it?" -- perfect summary of the design problem with the Semester class! | |
| Mar 11, 2022 at 0:35 | history | answered | freakmind | CC BY-SA 4.0 |