Jay Fields Thoughts
Clojure: select-keys, select-values, and apply-values
~1 year ago by Jay Fields on Jay Fields Thoughts.
Clojure provides the get and get-in functions for returning values from a map and the select-keys function for returning a new map of only the specified...
Clojure: get, get-in, contains?, and some
~1 year ago by Jay Fields on Jay Fields Thoughts.
Clojure provides a get function that returns the value mapped to a key in a set or map. The documentation shows the example: (get map key). While that's...
Taking a Second Look at Collective Code Ownership
~1 year ago by Jay Fields on Jay Fields Thoughts.
It's common to hear proponents of Agile discussing the benefits of collective code ownership. The benefits can be undeniable. Sharing knowledge ensures...
Experience Report: Feature Toggle over Feature Branch
over 1 year ago by Jay Fields on Jay Fields Thoughts.
We often use Feature Toggle on my current team (when gradual release isn't possible). My experience so far has been: gradual release is better than Feature...
Clojure: Flatten Keys
over 1 year ago by Jay Fields on Jay Fields Thoughts.
I recently needed to take a nested map and flatten the keys. After a bit of trial and error I came up with the following code. (note: the example expects...
Clojure: Another Testing Framework - Expectations
over 1 year ago by Jay Fields on Jay Fields Thoughts.
Once upon a time I wrote Expectations for Ruby. I wanted a simple testing framework that allowed me to specify my test with the least amount of code.Now...
Clojure: Mocking
over 1 year 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
over 1 year 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
over 1 year 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
over 1 year 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...
