This week’s Clojure Cookbook recipe is a lightning tour of polymorphism approaches in Clojure. I had fun writing this recipe because I’d not seen a lot of these approaches used outside of samples. I hope it provides some insight to you about when/why...Continue reading
In this week’s Clojure Cookbook preview recipe, we’ll be taking a look at tools.cli, a nifty core library for parsing command-line arguments.
This recipe was really fun to write because of how simple
tools.cli is. Since parsing string arguments is...
This recipe from Clojure Cookbook is one of my all-time favorites. Contributor (and all-around awesome dude) Leonardo Borges submitted a two-part series on building custom data structures in Clojure, using core.match no less. I’d never really dug into...Continue reading
For this week’s Clojure Cookbook preview recipe we’ll be taking a dive
clj-time, one of my
favorite libraries for dealing with time in Clojure.
Most commonly I use
clj-time for its parsing and
capabilities. The library is a trove of...
One of the most common faux pas I see in the Datomic-wilds is creating
functions that eschew the database as a value (e.g. accepting
as an argument). Instead, they treat the connection as a
value. Their functions accept
conn as an argument, or worse...