Re: Spy - Clojure / ClojureScript library for stubs, spies and mocks

2018-05-02 Thread Travis Daudelin
This looks great! Great timing, I was just struggling with some unit tests where I need a way to validate if a function was called -- 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

Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-05-31 Thread Travis Daudelin
Awesome replies everyone, thanks for the advice! Will definitely check these plugins out -- 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 - pl

Re: [ANN] Eastwood, the Clojure lint tool, version 0.2.4 released

2017-05-23 Thread Travis Daudelin
Hi, thanks for posting this looks great! Is there any overlap in functionality between Eastwood and Kibit ? It's not clear to me which tool I should prefer nor when. -- You received this message because you are subscribed to the Google Groups "Clojure" group.

Re: what tutorials exist for working at the Repl in Emacs?

2016-12-23 Thread Travis Daudelin
> > modern setup in Emacs > I generally recommend https://github.com/bbatsov/prelude for newcomers to emacs, especially if you are interested in Clojure development. As for the repl, Prelude comes with CIDER out of the box and the docs for that are quite good: http://cider.readthedocs.io/en/la

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

Re: Having trouble doing what I want using macros, is there a better way?

2016-06-10 Thread Travis Daudelin
On Friday, June 10, 2016 at 3:03:38 PM UTC-7, Francis Avila wrote: > > A higher-order function can do what this macro does: > https://gist.github.com/favila/ecdd031e22426b93a78f > Oh nice! It looks like I came up with an almost identical solution: (defn transducing [f] (fn [reducing-fn] (

Re: Having trouble doing what I want using macros, is there a better way?

2016-06-10 Thread Travis Daudelin
Actually, I spoke too soon. It looks like completing takes in a reducing function and wraps it so that it meets the arity expectations of a transducer. While this is still super useful to my needs (thanks again!) I wanted to clarify for posterity that completing does not solve the issue in my i

Re: Having trouble doing what I want using macros, is there a better way?

2016-06-10 Thread Travis Daudelin
On Friday, June 10, 2016 at 11:43:04 AM UTC-7, Bobby Eickhoff wrote: > > But maybe the core function completing is very close to what you're > looking for... > Hmm, looking through its source I'd say it's exactly what I'm looking for. Thank you! -- You received this message because you are

Re: Having trouble doing what I want using macros, is there a better way?

2016-06-10 Thread Travis Daudelin
> > I think you can do what you want with existing transducers. Won't > map/filter/keep/etc do the trick? > I can't say for sure that it's not possible, but I certainly lack the imagination :). The logic I need to write is quite complicated and I'm finding it's easier to write my own transduce

Having trouble doing what I want using macros, is there a better way?

2016-06-10 Thread Travis Daudelin
Hi all! I'm current working on a project where I am ingesting events off a stream and processing them. There are many many steps involved in the processing component, so I am choosing to write the steps as a series of transducers (because, hey, they're super cool!). Here's the problem though, a