111 reputation
2
bio website
location
age
visits member for 3 years, 9 months
seen Oct 16 at 6:09

Mar
27
comment Is there a valid case for two components to depend on each other?
I tried emphasize the meaning of dependency in this context by putting it as a first sentence (but apparently, I failed). Your example with Folder and File is a relationship, but not a dependency: Folder can exist and make sense without any Files, also root Folder can have no parent and still fulfill it's purpose. Dependency in this context is more like Accountant having a dependency on BankAccount because without the dependency accountant's responsibility to transfer money would make no sense, thus Accountant would take BankAccount as a constructor parameter.
Mar
27
comment Is there a valid case for two components to depend on each other?
A and B can be combined only if responsibility is the same and not for the sake of removing cyclic dependency. So to me it's not that self-fulfilling prophecy.
Mar
26
awarded  Student
Mar
26
asked Is there a valid case for two components to depend on each other?
Jan
15
awarded  Supporter