Jay Fields Thoughts

Clojure: if-let and when-let


11 months ago by Jay Fields on Jay Fields Thoughts.
I'm a fan of if-let and when-let. Both can be helpful in creating succinct, readable Clojure code. From the documentation:If test is true, evaluates then...

Clojure: Truthy and Falsey


12 months ago by Jay Fields on Jay Fields Thoughts.
Truthy and Falsey are important concepts in Clojure. The best description I've seen is in The Joy of Clojure, go buy it.Depending on your language background...

The Impact of Accidental Complexity on Estimates


12 months ago by Jay Fields on Jay Fields Thoughts.
At speakerconf Aruba, J.B. Rainsberger recently gave an enlightening talk which included discussion on the impact of accidental complexity to estimates...

The President and the CEO of an Application


12 months ago by Jay Fields on Jay Fields Thoughts.
The CEO is a visionary, often leaving day-to-day operations to the President -- wikipediaI recently switched teams. As part of the transition process, I...

Clojure: Web Socket Introduction


~1 year ago by Jay Fields on Jay Fields Thoughts.
Web Sockets may sound intimidating, but if you use Clojure and jQuery it's actually quite simple.The first thing you need to do is grab a WebSocket capable...

Clojure: &env and &form


~1 year ago by Jay Fields on Jay Fields Thoughts.
Inside the body of defmacro you can call &env and &form to get a bit of interesting information that may or may not be helpful.Here's a few examples that...

Compatible Opinions on Software


~1 year ago by Jay Fields on Jay Fields Thoughts.
I'm switching teams this month. I'll be working out of the DRW New York City office in the near future. I've been with my current team for almost 2 years...

Clojure: Using Java Inner Classes


~1 year ago by Jay Fields on Jay Fields Thoughts.
Recently, I wanted to add some specific behavior to my Clojure application when any uncaught exception occurred. This is easy enough by calling the setDefaultUncaughtExcep...

Clojure: fnil


~1 year ago by Jay Fields on Jay Fields Thoughts.
The fnil function was added to Clojure in version 1.2. The fnil function is a great addition that allows you to write code that works for all cases where...

Clojure: partial and comp


~1 year ago by Jay Fields on Jay Fields Thoughts.
Clojure provides a few different options for creating functions inline: fn (or the #() reader macro), partial, and comp. When I first got started with Clojure...