Jay Fields Thoughts

Synchronizing Snapshots and Incrementals With Single Threading


over 5 years ago by Jay Fields on Jay Fields Thoughts.
Code available on: https://github.com/jaycfields/snapshot-incremental-synchronizeMany of the applications that I write these days have a lot of data - so...

Clojure: Expectations Verify Interaction Args


over 5 years ago by Jay Fields on Jay Fields Thoughts.
The expectations framework provides the ability to create interaction (or behavior) based tests. I've previously written about adding interaction based...

Clojure: Expectations Interactions - Interactions Are Code, Interactions Are Data


over 5 years ago by Jay Fields on Jay Fields Thoughts.
If you read my blog you've probably heard "code is data, data is code" and at one time and you've looked up homoiconicity. You may have deeply understood...

Clojure: Expectations Warn On State Change During Test Runs


over 5 years ago by Jay Fields on Jay Fields Thoughts.
While writing tests it can be easy to accidentally change any global state that exists in your application. I've previously written about Redefining State...

Clojure: Expectations Before Run Hook


over 5 years ago by Jay Fields on Jay Fields Thoughts.
The expectations library now supports calling an arbitrary number of custom functions before the test suite is run. There are several reasons that you...

Clojure: Converting scenarios With Interleaved expect Calls To Bare expectations


almost 6 years ago by Jay Fields on Jay Fields Thoughts.
Since I've deprecated scenarios, I went through all of my projects and removed any usages of expectations.scenarios. For the most part the conversion was...

Elisp: Duplicate Line


almost 6 years ago by Jay Fields on Jay Fields Thoughts.
After switching to emacs I quickly noticed that I was missing a simple keystroke for duplicating a line. Yes, I know it's as easy as C-a, C-k, C-y, Enter...

Elisp: Automated Switching Between Clojure Test and Source Files


almost 6 years ago by Jay Fields on Jay Fields Thoughts.
The majority of the work that I do in emacs is Clojure programming. The Clojure navigation support (M-.) is usually all I need, but one thing that I find...

Elisp: Grep in Clojure Project


almost 6 years ago by Jay Fields on Jay Fields Thoughts.
Grep'ing within my current project is something I do frequently. It's not much to type, but I do it often enough that I was looking for a keystroke. Most...

Clojure: Deprecating expectations.scenarios


almost 6 years ago by Jay Fields on Jay Fields Thoughts.
I previously mentioned: The functionality in expectations.scenarios was borne out of compromise. I found certain scenarios I wanted to test, but I wasn...