Redpill me on Java.
It is one of the few programming languages I know and it is, in my opinion, the most enjoyable and powerful of the ones I am familiar with. Please tell me why you all seem to hate it, genuine question, if it's shit I want to know.
Use Kotlin. It's exacly like Java, but it's not shit
too big overhead for hello world, fizzbuzz and other little "look how few lines I need to write" programs
>>61682058
But I don't really see how this could be a disadvantage, I mean it's not like hello world programs are actually meaningful in any way.
>>61682157
that's the most advanced "programs" that most people on /g/ can write, they don't get to the point where Java actually shines
I hate type erasure.
I hate the mistakes in early APIs which can't be changed due to backwards compatibility.
I hate the way every framework uses reflection to work around the lack of proper abstractions.
I hate all the String-ly typed libraries.
I hate AOP proxies and bytecode magic.
I hate the poor support for unsigned numeric types.
I hate slow classpath-scanning dependency injection.
I hate mutable dates.
I hate checked exceptions which should be unchecked.
I hate every method that throws IOException unnecessarily.
I hate the fallout from the community's love affair with XML.
I hate all the APIs which force me to cast Objects. Especially JDBC.
I hate raw types.
I hate nullability by default.
I hate covariant arrays.
I hate Service Discovery.
I hate that the primary method of optimisation is twisting your code in knots to avoid allocations.
I hate SecureRandom defaulting to /dev/random, and the hacks required to use /dev/urandom
I hate Java Update Scheduler.
I hate every obscure bit of trivia that Java has forced into my brain, and I hate that it's now the programming language I'm most comfortable in.
>>61681727
>Redpill me on ...
GTFO
>>61682257
Elaborate for the uninitiated
>>61682833
Java is good for large scale applications. Many "back end" web systems from large companies are written in it. Read about the Spring framework.
>>61681727
Java is fine. There was a lot of shilling from Microsoft 10 years ago against Java while pushing C#, but they've given up on that after making it open source.
You'll probably also hear people complaining about Oracle's JRE on Windows being a security hole and coming bundled with adware. They're right, but why would you ever use that if you have Linux and OpenJDK?
>>61682879
Gotcha
It's the National Programming Language of India.
>>61683079
My company is working on reimplementing a major bank's back office processing using offshore Java developers.
Billions of dollars will be managed by code such aspublic static final Object C = "c";
Legacy Java is ugly. Java 8 is quite enjoyable. The new spring is also quite good.
Must-have libraries include lombok and guava.
After experiencing Django for 2 years I can appreciate how easy it's to write unit tests for code using dependency injection in Java.
sir?
>>61682879
This, living that comfy spring backend life. Even when queueing from jms and rabbit shit is chill and easy
>>61682652
U sound like a lad who should just end it already
Java's not too bad nowadays. Before SE 6, it was a shitshow, though. If you're learning it, books typically describe classes, abstract classes, and interfaces in the dumbest fucking ways. No unsigned types, the 'File' class, and and trying to manage your memory manually all fuck out in the weirdest ways, too.