News for hackers. Stuff that matters.
Re:IT Runs on Java 8 by sidlls on Friday May 10, 2019 @08:47PM (#19883672)
Java itself is fine. It's very popular--and that's the biggest problem. Not the language as such but the developer ecosystem around it. I am dead tired of seeing 80-character camel-case function and variable names, annotations that hide critical functionality of the code, stack traces dozens or hundreds of lines long because of the amount of indirection and poorly conceived configuration "languages" used to support dependency injection so developers can save a few characters of typing or mask dependencies and complexity, etc.

The language may be fine, but it has been appropriated into the worst sort of terrible programming paradigms one might imagine.

Re:IT Runs on Java 8 by ptx on Saturday May 11, 2019 @04:10AM (#19885157)
The terrible programming paradigms are workarounds for the terrible language.

I read an old blog post about Spring's @Required annotation versus plain constructor injection and typed out a small example to get a feel for it – a simple class with one required and one optional dependency – which resulted in

23 lines of plain Java with constructor injection, or

16 lines of Java with Spring @Autowired magic, or

7 lines of Kotlin – no magic needed.

Re:IT Runs on Java 8 by Cacti on Friday May 10, 2019 @09:17PM (#19883833)
We aren’t talking about Java the language. We are talking about the JVM.