Re:From zero to 10M lines of Kotlin
by brendank310 on Tuesday October 25, 2022 @08:14PM
(#33338012)
I'm curious how you come to this conclusion. Granted I never wrote much Java (and not in the last 10 years), but it was painfully verbose at the time. I've never had that reaction while writing golang (which over the last 3 years I've done a decent amount). Has Java gotten much more succinct?
[ Parent
| on HN ]
Go is definitely far more verbose. Go cannot compete with switch expressions, pattern matching, and streams.
That’s the interesting thing, how did this verbose feeling stuck to Java while not to Go, where your code is literally littered with if errs, you have way too deeply nested for loops, etc.
Java is a surprisingly expressive language even though it does have a few warts.
Re:From zero to 10M lines of Kotlin
by brendank310 on Thursday October 27, 2022 @06:55AM
(#33355772)
I'll have to give it another look if the situation presents itself. I think one factor of Java being remembered so unfavorably was it being early in my career.
I do think there should be a distinction on what is lumped as verbosity. Golang is vertically verbose with its error checking, and Java in my experience is at least more horizontally verbose (long lines).