Hacker News new | ask | show | jobs
by nowprovision 3657 days ago
For golang kubernetes is pretty good, i learnt a lot of tricks just reading code, but you quickly learn it was the wrong language on so many fronts.
1 comments

You mean it was a mistake for kubernetes to be written in go? If so, I would love to hear a bit about it.
I think so. The lack of parametric types leads to an explosion of types for each concept, and where they don't do this a load of casting from runtime.Object and interface{}. The lack of exhaustive pattern matching is responsible for many bugs, oh we forgot to add a case for runtime.InternalEvent etc... However our project will be using Kubenetes library and thus we're also doing it in Go. MetaAccessor another eye sore. It's all a trade-off I guess..