4 ms·
>While it is clear what lines of code does, at a tactical level, it is extremely difficult to follow what happen in the big picture, the strategic level. Where
by fnord123 7y ago
>While it is clear what lines of code does, at a tactical level, it is extremely difficult to follow what happen in the big picture, the strategic level. Where the values comes from and where they go?
Compared to python or Java? Well written python basically resembles Go. And most Java I've come across tries to spread logic across class boundaries so you never get to have all the code in front of you at one time.
- jeremyjh 7y agoDefinitely 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 7y agoAnd Kotlin nowadays looks very much like Python, but it's same Java, just with syntactic sugar.
- marcosdumay 7y agoKotlinLooksLikePythonWouldLookIfJavaDevelopersNamedThings
- 0xdeadbeefbabe 7y 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...