I was just reading Rust – A hard decision pays off (https://news.ycombinator.com/item?id=32578743) when I stumbled upon this comment https://news.ycombinator.com/item?id=32580654 > Docker is built with Go. Compare doing things with Docker api between Go and Python. I usually recommend people to “script” things with Go but I start to think that Go has to go… https://docs.docker.com/engine/api/sdk/examples/ The very first example of the SDK page is quite a shock. To “run a container” in Python is 3 LOC. To do the same in Go takes 56 LOC. But why? I can imagine adding a simple method to the Go SDK to mimic what the Python SDK is doing, but that’s not the case. So, why this huge difference? One solution is “Pythonic” and the other is “the gopher way”?
Story Published at: August 24, 2022 at 04:58PM
Story Published at: August 24, 2022 at 04:58PM