Jay Fields Thoughts

Clojure: Using given & expect To Replace scenarios


almost 5 years ago by Jay Fields on Jay Fields Thoughts.
The functionality in expectations.scenarios was borne out of compromise. I found certain scenarios I wanted to test, but I wasn't sure how to easily test...

Clojure: Freezing Time Added To expectations


almost 5 years ago by Jay Fields on Jay Fields Thoughts.
If you're using expectations and Joda Time, you now have the ability to freeze time in bare expectations (version 1.4.16 and above). The following code...

Clojure: Interaction Based Testing Added To expectations


almost 5 years ago by Jay Fields on Jay Fields Thoughts.
The vast majority of testing I do these days is state-based; however, there are times when I need to test an interaction (e.g. writing to a file or printing...

Java: Add A Println To A 3rd-Party Class Using IntelliJ's Debugger


~5 years ago by Jay Fields on Jay Fields Thoughts.
When I'm working with 3rd party Java code (e.g. joda.time.DateTime) and I want to inspect values that are created within that code, I generally set a breakpoint...

clojure: lein tar


~5 years ago by Jay Fields on Jay Fields Thoughts.
A co-worker recently asked how I package and deploy my clojure code. There's nothing special about the code, but I'm making it available here for anyone...

emacs lisp: removing a lamba hook


~5 years ago by Jay Fields on Jay Fields Thoughts.
disclaimer: I know almost nothing about emacs lisp, so please forgive any mistakes or incorrect assumptions. I've been using Clojure for over 4 years at...

8 Linux Commands Every Developer Should Know


~5 years ago by Jay Fields on Jay Fields Thoughts.
Every developer, at some point in their career, will find themselves looking for some information on a Linux* box. I don't claim to be an expert, in fact...

Sharing Blog Example Code


over 5 years ago by Jay Fields on Jay Fields Thoughts.
I've been blogging since 2005, using various tools for publishing readable code. Originally you'd just put code out there, no colors, just a pre tag and...

Reading Clojure Stacktraces


over 5 years ago by Jay Fields on Jay Fields Thoughts.
Clojure stacktraces are not incredibly user friendly. Once I got used to the status quo, I forgot how much noise lives within a stacktrace; however, every...

Clojure: Production Web REPL


over 5 years ago by Jay Fields on Jay Fields Thoughts.
A REPL is a powerful tool. I use the REPL extensively in development, and I recently added a web REPL to each of our production applications. Context A...