De-Duplicating Unit Test Setup

Go (or if you are using a search engine, Golang) has great unit testing functionality built directly into the language. Create a file ending in _test.go and define a function with the signature func TestMyFunction(*testing.T). Executing go test will now run any tests in the current package. Very easy. As an application grows however, the number of tests explodes and it maintaining organization becomes difficult. To solve this problem, while developing the new REST API at ExtraHop I began using GoConvey from the very gracious developers at SmartyStreets. [Read More]

A Better Recipe

I have always had trouble with recipes. The instructions are always located at the bottom well after the full list of ingredients is displayed. So guess what happens… yup, I go down the ingredients list adding each to a big bowl as I go. By the time I read the instructions and learn there was a specific order it is far too late. I have been reading The Little Schemer and came across a nearly perfect solution that I just had to share. [Read More]