Jay Fields Thoughts

Clojure: Mocking


6 days ago by Jay Fields on Jay Fields Thoughts.
An introduction to clojure.test is easy, but it doesn't take long before you feel like you need a mocking framework. As far as I know, you have 3 options...

Clojure: Using Sets and Maps as Functions


8 days ago by Jay Fields on Jay Fields Thoughts.
Clojure sets and maps are functions.Since they are functions, you don't need functions to get values out of them. You can use the map or set as the example...

clojure.test Introduction


27 days ago by Jay Fields on Jay Fields Thoughts.
I'll admit it, the first thing I like to do when learning a new language is fire up a REPL. However, I'm usually ready for the next step after typing in...

Clojure: Destructuring


~1 month ago by Jay Fields on Jay Fields Thoughts.
In The Joy of Clojure (TJoC) destructuring is described as a mini-language within Clojure. It's not essential to learn this mini-language; however, as the...

Clojure: Composing Functions


~1 month ago by Jay Fields on Jay Fields Thoughts.
Before Clojure, I had never used a Functional Programming language. My experience has primarily been in C#, Ruby, & Java. So, learning how to use Clojure...

High Level Testing with a High Level Language


2 months ago by Jay Fields on Jay Fields Thoughts.
In the early days of my project we made the decision to high-level test our Java application with Clojure*. One and a half years later, we're still following...

Sacrificing some IDE capabilities


2 months ago by Jay Fields on Jay Fields Thoughts.
When discussing adopting Clojure or JRuby there are often heated discussions concerning the pros and cons of working with a language that has less IDE support...

Clojure: Converting a Custom Collection to a Sequence


4 months ago by Jay Fields on Jay Fields Thoughts.
I've been doing a bit of clojure lately and I've often found myself looking to convert a custom collection to a sequence. Unfortunately, several custom...

Pairing isn't the Solution


6 months ago by Jay Fields on Jay Fields Thoughts.
In 2007 & 2008 I wrote several blog entires on Pair Programming (tagged with pair programming). Pair programming solved a lot of problems for me: knowledge...

Shorter Syntax for Creating Stubs with Mockito


6 months ago by Jay Fields on Jay Fields Thoughts.
As part of my efforts to create more concise Unit Tests in Java, Steve McLarnon and I recently added the ability to create a stub and stub one method with...