Re:Background: how we got the generics we have (2020)
by thrower123 on Thursday April 01, 2021 @11:48AM
(#26662017)
I mean, Groovy is terrible, and there is not very good tooling for it.
That's not the case for Kotlin, that has the full weight of JetBrains behind it.
Re:Background: how we got the generics we have (2020)
by zmmmmm on Thursday April 01, 2021 @07:08PM
(#26667419)
> We rolled back to Java many such critical paths just to be able to maintain them
I guess that's what I see as one of the advantages of Groovy. You can do ultra rapid implementation of something with minimal code and then as it becomes more critical you increase its type safety by adding first Groovy type hints, but further along that curve, convert it fully to Java or another statically typed language. So what you describe as a problem I see as sort of, optimal workflow, and the real problem is being forced to universally choose one or the other in other languages.
My little pitch when starting a migration project in a distressed no-type language team is to make them read the code and explain it, while asking about the type of objects they use and show them when they read it's their brain parsing it with high effort. If they de-optimize and just write the types more often, it becomes much clearer longer.
You can type usually in those language but often people want to use the "proper way" as shown in ultra simplistic examples in manuals for sales pitches and end up thinking the right way to code is to write as little as possible (combined with the no-comment belief they have but don't map to "no comment because clear enough code").