News for hackers. Stuff that matters.
Re:Pitfalls of Callback-Based APIs by markuz on Tuesday December 23, 2014 @11:35PM (#8791553)
I was thinking the same thing. It has nothing to do with callbacks.

> fully resolving circular dependencies is equivalent to solving the halting problem, IIRC.

I don't think so. Any good dependency injection framework would detect this kind of circular dependency.

Re:Pitfalls of Callback-Based APIs by groby_b on Wednesday December 24, 2014 @01:16PM (#8793847)
Of logger and DB, certainly. The coupling introduced via locks is harder to detect. But most importantly, circular dependency between components might be OK in a path-dependent way - that's what I meant by fully resolving it.

Just analyzing the dependency graph of injected components is indeed just a topological sort.