Musings…

I was on the train on the way home last night, and I found myself rehashing something that I’d attempted a number of times previously. And, much like anyone that works in technology, getting to the bottom of what it was that I was trying to do was a shuttle run between the Holy Trinity of Google, Github, and StackOverflow.

It was a fairly typical workflow:

  • search
  • click
  • copy-pasta
  • rename/refactor
  • build
  • “Service ‘app’ failed to build: ADD failed [redacted] no such file or directory”
  • Shit

Wash, rinse, repeat. It’s 2am. I’ll belligerently continue this approach because it’s too late to think harder.

Not that it matters, but in this specific instance, I was pulling together a Golang project structure, Makefile, and Docker container. Initially so that I could write up what I consider a reasonable boilerplate (as many others have before me), but longer term as the foundation on which I’ll be doing a lot of work in the not-so-distant future. In isolation, each of those things are pretty straightforward, but pulling together a workable solution is usually an exercise of building Frankenstein’s Monster with a text editor.

Having gone through this exercise for a number of times that I’ve forgotten or been distracted, I decided it was high time I started making notes of things that I’d discovered, solved, or otherwise explored. Mostly for my own posterity, but also for anyone that’s doing the same shuttle run to solve similar problems. At the very least, I’ll have one place to get all my copy-pasta from.

Pretty sure I’m saving myself a bunch of time by doing this, with the added benefit of flushing out the murky receptacle of my mind in the process. Hopefully someone else finds it of value, because hey, “I’m someone like me”.