Back in November I was in Paris for dotGo, one of my favorite Golang conferences. I was invited to speak and wanted to share something concrete with the audience, something based on my experience with Go at Splice. Go is designed for simplicity with only one way of doing one thing. That makes preparing talks pretty challenging since a lot has already been said and there is not much more to add. A lot of us pick Go because it’s has concurrency built-in, but it doesn’t mean that writing efficient concurrent code is instinctive or obvious.
I walked the audience through the parallelization of code execution and all the mistakes we usually make. Using an Arduino and a set of LEDs, I show how goroutines operate and how to write working Go code.