2 ms·
Definitely Java has a very similar problem, of having so much rote boilerplate in every single class that its hard to see essential deviations from the pattern
by jeremyjh 8y ago
Definitely Java has a very similar problem, of having so much rote boilerplate in every single class that its hard to see essential deviations from the pattern that you need to understand in order to follow the code. I have not ever seen this problem in a Python code base. It is not littered with "if err != nil" for one thing, but Java has exceptions too and still has this problem.
I attribute it more to a static type system that lacks features I've grown use to in modern languages. Most of my experience in Java is 1.6 and prior so its possible code bases have improved since then.
- deepsun 8y agoAnd Kotlin nowadays looks very much like Python, but it's same Java, just with syntactic sugar.
- marcosdumay 8y agoKotlinLooksLikePythonWouldLookIfJavaDevelopersNamedThings
- 0xdeadbeefbabe 8y agoOooh I like the prospect of check(errProducingFunc()) https://github.com/golang/proposal/blob/master/design/go2draft-error-handling.md https://github.com/golang/proposal/blob/master/design/go2dra...