Very impressive work! 

I was thinking of letting components not only implement the Lifecycle 
protocol but also a protocol that defines the functionality of the 
component. To give a simple example, there could be a jdbc component that 
establishes a connection on init etc., and which also implements a 
JDBCProtocol, e.g. functionalities such as provided by 
clojure.java.jdbc/query etc.  Does that make sense?

I ask because I didn't see any of the extensions or examples done in this 
way, and because there doesn't seem to be much code that supports fetching 
and manipulating the system map which seems to speak against this approach?


Op vrijdag 11 oktober 2013 18:23:41 UTC+2 schreef Malcolm Sparks:
>
> A few months ago, Stuart Sierra blogged about the workflow he follows for 
> building Clojure applications.
>
> "One of the great pleasures of working with a dynamic language is being 
> able to build a system while simultaneously interacting with it. "
> -- http://thinkrelevance.com/blog/2013/06/04/clojure-workflow-reloaded
>
> Since then I've been using this workflow for my own projects, and found it 
> to be amazingly effective. 
>
> I've added some extra features, and the result is Jig, which builds on 
> Stuart's work in the following ways :-
>
>    - Multiple components can each contribute to the 'system' map
>    - Components are started in dependency order
>    - Components are specified and configured in a config (edn) file
>    - Jig can host 'plain old' Leiningen projects - Jig will even 'reload' 
>    them too e.g. if their project.clj dependencies change.
>    - Jig can host multiple projects simultaneously
>
> There's a small but growing list of optional re-usable components that 
> provide extra functionality :-
>
>    - Pedestal services support. Jig provides the system map and 'url-for' 
>    function in the service context.
>    - Nginx cache purging on reload
>    - Git pull prior reload
>    - Reload via JMX
>    - nREPL
>    - Stencil cache purging
>    - Firefox remote control support for 'browser refresh on reload'
>
> I know others are working on similar designs. I'd be interested to hear 
> what people think and whether this is useful.
>
> Thanks,
>
> Malcolm
>
> PS: Jig can be found here: https://github.com/juxt/jig
>
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to