DEV Community

Discussion on: Java may be verbose, but who cares?

Collapse
 
jillesvangurp profile image
Jilles van Gurp

Java has a lot of verbosity; and as languages like Kotlin & Scala prove quite a bit of it is unnecessary given progress with e.g. type inference and other language constructs that are easier to deal with without compromising type safety. I'm currently transitioning from Java to Kotlin. It's not a massive change but nice nevertheless.

The nice thing is that unlike with other languages, this is not a throwback to the stone ages in terms of tools, frameworks, and practices. I get to keep all of that and get more compact code. For example, refactoring without technical support is more of an aspirational thing. Any superficial inspection of any ruby, javascript, or python software will show you that. I've facepalmed my way through quite a few such projects. There's a reason not a lot of Ruby & javascript code survives its first anniversary. With proper technical support, refactoring is no brainer. My IDE tells me when there is a problem instead of my program failing to run, I know before I finish typing that it will compile. This excludes a very wide category of bugs from ever happening. This is why Java became so popular.

Now other languages are finally catching up and there are even half decent IDEs appearing that are not written in Java. The fact that that was unthinkable for close to 20 years tells you all you need to know about Java.