4 ms·
> how to pass a reference to A all the way through the object graph to object B you just end up replacing the object graph by the call graph, which makes all t
by jcelerier 6y ago
> how to pass a reference to A all the way through the object graph to object B
you just end up replacing the object graph by the call graph, which makes all the business logic much messier as now every function call takes a "context" argument
- beaconstudios 6y agoThat's not been true in my experience - what you do end up with is a global data structure, which is the shared state for all or most non-ephemeral top level concerns. Aside from recursive functions I find call stacks tend to be quite short.