Interesting that this mirrors the evolution of DI in a typical OO program: start with globals; advance to the Service Locator (5:40 ish); end up at "real" dependency injection.
Constructor/property injection and what he calls associative injection are talking about different things. Constructor and property injection are about how the dependencies are set on each object/component. 'Associative injection' is just talking about how you build up the container/injector. To get the dependencies onto the components, it's using constructor injection.
Stuart mentioned at ruclips.net/video/13cmHf_kt-Q/видео.html that you cannot just start/stop part of a system. This is one of the applications for having systems inside systems? You can stop an internal system and parent system would still be in start state?
Great! Here are simple examples using the Component library : github.com/stuartsierra/component/blob/master/dev/examples.clj Are there any app/projet that uses this so far? I'd love to see more code to look at!
Interesting that this mirrors the evolution of DI in a typical OO program: start with globals; advance to the Service Locator (5:40 ish); end up at "real" dependency injection.
Great talk about software architecture in Clojure. Very nice component pattern, very well presented. Cool.
Stuart is such a lucid speaker
Constructor/property injection and what he calls associative injection are talking about different things.
Constructor and property injection are about how the dependencies are set on each object/component.
'Associative injection' is just talking about how you build up the container/injector. To get the dependencies onto the components, it's using constructor injection.
Very cool!
Stuart mentioned at ruclips.net/video/13cmHf_kt-Q/видео.html that you cannot just start/stop part of a system. This is one of the applications for having systems inside systems? You can stop an internal system and parent system would still be in start state?
Aka erlang supervisors... I think that thsi is correct.
Great! Here are simple examples using the Component library : github.com/stuartsierra/component/blob/master/dev/examples.clj
Are there any app/projet that uses this so far? I'd love to see more code to look at!