Ah OK. I was confused a little about what makes a component, it isn't
just state it is also about lifecycle.

Imagine a "health-check" which polls some service to see if it is
there, it needs the service and some ohDear notifier component but it
doesn't have any state as such (or at least no state that changes over
time), but it does have a notion of start/stopping. This would be a
good candidate because it has a lifecycle.

Thanks again.

On 28 November 2014 at 15:54, James Reeves <[email protected]> wrote:
> On 28 November 2014 at 15:20, Colin Yates <[email protected]> wrote:
>>
>> I guess I got a bit misled with the combination of his "Customers"
>> example in the video, the "all or nothing" warnings and "I do not
>> intend that application functions should receive the top-level system
>> as an argument. Rather, functions are defined in terms of components.
>> " (from the front page on github).
>>
>> I guess we can just (:interesting-component system) once the system has
>> started?
>
>
> Your system should call your functions, not the other way around.
>
> You can have functions that are not components, but all functions should be
> called from a component. The direction of the program should flow down from
> the system to its components, then down into individual functions.
>
> - James
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Clojure" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/clojure/WC983q33Nes/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to