Re: Feature toggles via Leiningen profiles

2013-08-13 Thread Michal Till
> Rather than shadowing one implementation with another, I'd recommend keeping both implementations in different namespaces and dispatching based on config, which can be read from the classpath. Sorry for a newbie question, but how do I do "dispatching based on config" exactly? The point for me

Re: Feature toggles via Leiningen profiles

2013-08-12 Thread Phil Hagelberg
On Monday, August 12, 2013 1:36:43 PM UTC-7, Karsten Schmidt wrote: > Hi Michal, have a look at this gist to see how this can be done: > https://gist.github.com/postspectacular/6214886 Rather than shadowing one implementation with another, I'd recommend keeping both implementations in different

Re: Feature toggles via Leiningen profiles

2013-08-12 Thread Karsten Schmidt
Hi Michal, have a look at this gist to see how this can be done: https://gist.github.com/postspectacular/6214886 Best, K. -- Karsten Schmidt http://postspectacular.com | http://toxiclibs.org | http://thi.ng -- -- You received this message because you are subscribed to the Google Groups "Clojur

Feature toggles via Leiningen profiles

2013-08-12 Thread Michal Till
I would like to have two different implemntation of something in my project and switch between them based on a Leiningen profile. For example I have abstracted all storage-related functions to app.repository and I have namespace app.stoage.fs for development and app.storage.sql for production.