Workflow: cljx, cljsbuild & tdd in one process

2014-06-20 Thread Michal Till
Hello, Based on my previous experience with Ruby, JavaScript etc. I have set up my workflow in a way that it runs three different processes: lein cljx auto - translates the sources to clj and cljs lein cljsbuild auto dev - reads cljs output of ^^ and compiles it on every file change lein midje

Comparing core.async and Reactive Extensions

2013-12-16 Thread Michal Till
Hello, I seem to be a little bit confused when comparing core.async to the so called Reactive Extensions (Rx). They seem to tackle similar problem of async-icity, so I wonder what are the principal differences and in what cases is one preferred over the other. Can someone please explain? Regar

What does IOC in terms of core.async mean?

2013-08-19 Thread Michal Till
I kinda understand the whole problem and I also understand that this has nothing to do with the OO IOC pattern, but I still don't exactly get what is meant by this term. What is inverting what and where? What does "control" refer to exactly - compared to callbacks? M. -- -- You received this

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: Do you like the Clojure syntax?

2013-08-13 Thread Michal Till
Hi, I actually think that this is a really important question and for me despite the fact that I *love* Clojure my answer is NO, i don't like the syntax. To me it represents a significant barrier for reading. When I read an imperative OOP language I instinctively "see" through the code what th

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.

Matching false (== undefined, null) in ClojureScript core.match

2013-07-15 Thread Michal Till
I'm trying to match a false value of map's key (foo.bar) , which in javascript effectively means also undefined,null etc... It seems to me that core.match matches the value exactly. Is there any way to do this? The other way would be to match "not true", but the docs don't give me any hint ho