Re: Design pattern question: how to decouple data layer from application layer in Luminus service?

2016-11-18 Thread Gary Trakhman
It's dirty and not thread-safe, but you can always replace any clojure function (caveat: that's not direct-linked (only clojure.core 1.8+)) temporarily during testing with with-redefs. Instead of mocking out the functions, you might consider mocking out the database, or the data inside the databas

Design pattern question: how to decouple data layer from application layer in Luminus service?

2016-11-18 Thread Travis Daudelin
Hello everyone! I am investigating Clojure and, more specifically, Luminus , for a new service my organization will be building soon. My team and I are really excited by the prospect of trying out something new. There is a lot that I like about Luminus' design, but