Reading List
The most recent articles from a list of feeds I subscribe to.
How I'm testing MongoDB calls in Go (for now)
I started working on a little hobby project over this Easter vacation that makes use of MongoDB. But one thing I wasn’t sure about was how to test Mongo operations. Spanner provides the very helpful spannertest
package. Redis has miniredis
, allowing you to spin up a little Redis instance for each test. I was thinking I’d likely have to mock Mongo myself, but it turns out its Go driver comes with a helpful (but unstable!) mocking package called mtest
. I learned about this in this post and suggest checking it out if you’re curious about this experimental mocking feature of mongo-go-driver
.
Experimenting with remote work locations
With my third booster shot out of the way I’ve felt a bit safer finally going out into the world a bit more and actually experimenting with different work locations. One of the things I love about remote work is being able to work from anywhere, but throughout the pandemic it was impossible to explore this possibility because it simply wasn’t safe to do anything but stay at home.
War and K2
Lately, I am constantly refreshing the news about the war, and waiting for word from family in Ukraine. I am not sure what Putin thinks the end-game is here. Taking Ukraine for Russia? Installing a puppet regime? Has he not seen what Ukrainians have been willing to go through for their freedom? Does the bunker he crawled into not have Internet access to see what’s happening? Even if he manages to control the country by force for a while, Ukrainians will never just stop fighting back. There are already civilians taking up arms, throwing themselves in front of Russian vehicles, and coordinating efforts to prepare Molotov Cocktails.
The effort of people-ing
I’ve always been mostly an introvert. It always takes an effort to socialize, and while I do enjoy other people’s company when I do go out, I find I need a nice long break afterwards to recharge.