Jay Fields Thoughts

Clojure: Testing The Creation Of A Partial Function


over 4 years ago by Jay Fields on Jay Fields Thoughts.
I recently refactored some code that takes longs from two different sources to compute one value. The code originally stored the longs and called a function...

Recovering Lost Post Data


over 4 years ago by Jay Fields on Jay Fields Thoughts.
I recently typed out a long, thoughtful response in a textarea. I clicked submit, like I've done millions of times, and I got the dreaded "session expired...

Emacs Lisp: Toggle Between a Clojure String and Keyword


over 4 years ago by Jay Fields on Jay Fields Thoughts.
When I was doing a fair bit of Ruby I often used the TextMate's shortcut (Ctrl+:) to convert a Ruby String to a Symbol or a Ruby Symbol to a String. It...

Year Five


over 4 years ago by Jay Fields on Jay Fields Thoughts.
The average lifespan for a software engineering job is 4 years. Okay, I've never actually seen proof (or contradiction), but that's the general feeling...

Clojure: Expectations, Customize your Test Running Context


over 4 years ago by Jay Fields on Jay Fields Thoughts.
I've previously written about expectations' before run hook and the built in support for detecting state changes. These features are nice for reassigning...

Being a Lead Consultant


over 4 years ago by Jay Fields on Jay Fields Thoughts.
These are not my ideas, they were given to me. I wanted to store them in a safe place, which is why they can be found here. Thank you for your wisdom...

Emacs Lisp: Find Java Sources


over 4 years ago by Jay Fields on Jay Fields Thoughts.
Confession: I really hope someone can tell me I'm doing this wrong. I can't believe there isn't an easier way. I work with Clojure, in Emacs, almost every...

Clojure: Expectations Ignore A Variable Number Of Args In An Interaction Test


over 4 years ago by Jay Fields on Jay Fields Thoughts.
Over the past year I've written the same test a few times. This test accomplishes what I'm looking for when I write it - verification that my-fn isn't called...

Clojure: Expectations Interaction Tests For Java Objects


over 4 years ago by Jay Fields on Jay Fields Thoughts.
I recently ran into some code that forced me to integrate with a Java library. While using the library I found myself wanting to do a bit of interaction...

Synchronizing Snapshots and Incrementals With Single Threading


over 4 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...