+1 for environ as well.

I also have combined that with the Stuart Sierra reloaded workflow (started
it before Components, don't know if I want to switch).
http://thinkrelevance.com/blog/2013/06/04/clojure-workflow-reloaded

Finding it a great fit, as it's easy to switch out environ variables in
your system map when testing very easily, as you pass it all around.

Mark


On Tue, Jan 14, 2014 at 8:57 AM, Christopher Allen <c...@bitemyapp.com>wrote:

> Example here:
> https://github.com/bitemyapp/berossus/blob/master/src/berossus/rocks/your/data/config.clj
>
>
> On Monday, January 13, 2014 1:57:06 PM UTC-8, Christopher Allen wrote:
>>
>>
>> github.com/weavejester/environ/ + environment variables. 12-factor it
>> that way, proxy the environment variables via a config namespace so that
>> configuration values are programmatically generated in case something needs
>> to intervene.
>>
>> On Monday, January 13, 2014 5:50:54 AM UTC-8, James Trunk wrote:
>>>
>>> I've been investigating how to handle configuration in a Clojure
>>> application/library, and have discovered two main candidates: dynamics vars
>>> and argument passing.
>>>
>>> The downsides to dynamic vars seem to be: hiddenness, thread safety, and
>>> more complex tests (binding before each test).
>>>
>>> The downside to argument passing is noise in the code (especially when
>>> you're just passing the config through). Longer and more descriptive names
>>> for the config (i.e. not "ctx" or "cfg") make this noise even more painful.
>>>
>>> Are there any alternatives that I've missed? What is the current best
>>> practice for handling configuration?
>>>
>>> Cheers,
>>> James
>>>
>>  --
> --
> 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.
>



-- 
E: mark.man...@gmail.com
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

2 Devs from Down Under Podcast
http://www.2ddu.com/

-- 
-- 
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