Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Absolutely. But those are clear code smells. Any org with competent code review would flag them and kill them before they proliferated.


Would you consider k8s to be developed by a competent org? They have 2324 func declarations that take or return an interface{} on master right now.


Kubernetes, like Docker, is notoriously bad Go. The authors essentially transliterated Java.


This. It was really hard to enforce supplementary style across my team to match common conservatism in popular codebases (e.g. only return a single value or a value and bool/error. Don’t expose channels in APIs) when K8s so blatantly fails them.


Have you seen the internals of the Go http library? :)


Have you seen the internals of the rand library? HTTP uses interfaces cleverly to detect optional interfaces. Today I found out that rand.Rand does a type check on every core method to see if it’s source is the hidden type for global methods.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: