clojure

  • submit to reddit

Clojure: expectations - removing duplication with given

expectations obviously has a bias towards one assertion per test; however, there are times that verifying several things at the same time does make sense....

0 replies - 2332 views - 11/05/11 by Jay Fields in Articles

Clojure: expectations and Double/NaN

I'm not really a fan of Double/NaN in general, but sometimes it seems like the least evil choice. When I find myself in one of those cases I always hate...

0 replies - 2316 views - 11/04/11 by Jay Fields in Articles

Clojure: expectations with values in vectors, sets, and maps

I've previously written about verifying equality and the various non-equality expectations that are available. This entry will focus on another type of...

0 replies - 2365 views - 11/03/11 by Jay Fields in Articles

Clojure: Non-equality expectations

In my last blog post I gave examples of how to use expectations to test for equality. This entry will focus on non-equality expectations that are also...

1 replies - 2263 views - 11/02/11 by Jay Fields in Articles

Enabling rich(er) interactions in the Clojure REPL

I love the Clojure REPL.  I’ve never been more productive in any other environment.  In particular, I happen to like the REPL and general development...

0 replies - 2550 views - 10/27/11 by Chas Emerick in Articles

À la carte configuration in Clojure APIs

There are two dominant configuration patterns in Clojure libraries. The first is where configuration is provided explicitly via the first argument; here,...

0 replies - 2647 views - 10/18/11 by Chas Emerick in Articles

Changes to Cascade, and a cautionary tale about defrecord

Since I've been talking more about Clojure lately, I've spent a little more time working on Cascade. I've been stripping out a lot of functionality, so that...

1 replies - 3028 views - 09/22/11 by Howard Lewis Ship in Articles

Adding Gzip compression to a Clojure webapp in 30 seconds

As you might have seen, I’m working on a new web project, which happens to involve shipping a metric ton of content to each user’s browser upon...

0 replies - 5038 views - 09/13/11 by Chas Emerick in Articles

Reaction to “Clojure: Towards The Essence Of Programming” from a Scala perspective

Just watched Howard Lewis Ship’s Clojure: Towards The Essence Of Programming, which is an excellent introduction to Clojure and how it addresses...

2 replies - 5168 views - 08/28/11 by kent tong in Articles

Clojure: Check For nil In a List

The every? function in Clojure is very helpful for determining if every element of a list passes a predicate. From the docs:Usage: (every? pred...

0 replies - 3549 views - 08/24/11 by Jay Fields in Articles

Clojure: partition-by, split-with, group-by, and juxt

Today I ran into a common situation: I needed to split a list into 2 sublists - elements that passed a predicate and elements that failed a predicate. I'm...

1 replies - 4075 views - 08/24/11 by Jay Fields in Articles

Clojure: Apply a Function To Each Value of a Map

I recently needed to update all of the values of map, and couldn't find an individual function in clojure.core that did the trick. Luckily, implementing an...

0 replies - 4276 views - 08/22/11 by Jay Fields in Articles

Adventures with ClojureScript

Since Clojure is one of my favourite programming languages, I took a chance and used the brand new ClojureScript on a small project. I was sceptical...

0 replies - 5646 views - 08/15/11 by Felix Dahlke in Articles

One Night With Clojure Makes a Scala Guy Humble

I do most of my work these days in Scala, but I have long been curious about Clojure, partly because of the mythology around Lisp and it’s potential superior...

13 replies - 46418 views - 08/10/11 by Wille Faler in News

Clojure: memfn

The other day I stumbled upon Clojure's memfn macro.The memfn macro expands into code that creates a fn that expects to be passed an object and any args...

0 replies - 3790 views - 08/03/11 by Jay Fields in Articles