Skip to main content
5 events
when toggle format what by license comment
Apr 20, 2023 at 7:41 history edited DavidT CC BY-SA 4.0
Cyclic dependencies are bad - mkay
Apr 19, 2023 at 21:24 comment added candied_orange @Ewan to be clear, I do think constructors not being able to create cyclic dependencies is an advantage. Cyclic dependencies1,2 are a special kind of hell. It's just not the lesson the OP needed with this code.
Apr 19, 2023 at 19:15 comment added candied_orange @Ewan Huh? I thought DavidT was arguing that an advantage of constructors was that they don't let you set up cyclic dependencies the way method injection does.
Apr 19, 2023 at 19:00 comment added Ewan your cyclic dependency would still occur with method injection, you just wouldn't get a compile time error
Apr 19, 2023 at 7:40 history answered DavidT CC BY-SA 4.0