Fork me on GitHub

Just to let y’all know I am on my way, looks like I’ll be there just about 6, though may a few minutes after.


The tricks I mentioned were: juxt instead of a hash function. E.g. (juxt count identity) instead of #(list (count %) %) (doto println) (or (doto tap>)) for temporarily logging the value of an expression, this is especially useful with the thread first macro:

(-> it ... (doto println) ...)

👍 8

It was great to meet everyone, I need to come down more often


Yes, it was great to meet you too.


And for anyone interested in the podcast I'm one half of, head to (or look in your local podcast directory)


We have a channel on here too: #clojuredesign-podcast


@fiddlerwoaroof (Missed the meeting, no sitter last night, hi I’m Jacob 🙂 ) I’m curious about the hash function! How did hash functions come up? I use these to avoid duplicate work on the edges of my system. I recently found a thorough one here


@bocaj by hash function I meant the #(...) syntax for lambdas

👍 4

This "thread last" example was in the slides (sorts a list of strings by its length):

   ["sort" "this" "by" "length"]
   (map #(list (count %) %))
   (sort-by first)
   (mapv second))
Ed pointed out that the #(list (count %) %) could be written using juxt:
   ["sort" "this" "by" "length"]
   (map (juxt count identity))
   (sort-by first)
   (mapv second)

👍 4