Why I hate Java.

#programming #java

@n1 Nobody forces you to use all that products. You can reach the same with much less, even in Java.

@markus "Nobody forces you to ..." - I'm sorry but that's not an argument nor technical one.

Java with JVM was designed for '95 world where software was simple (very primitive comparing to contemporary software). Actually it was written and then trashed by one dude. Sun pulled it from the bin not because "what a merit" but because they needed "something" at that time.

If you want to write modern software use modern (well designed tools!) like Rust, Go or Zig. No runtime, ~0 overhead, fast.

@n1 @markus I will second the disagreement (if I can say so).
Java virtual machne provides a feature none of these alternatives will ever be able to provide : the continuous optimization of your code by the virtual machine itself, which guarantees that even a "basic" developer will be able to achieve good performances. But this discussion will require longer arguments than Mastodon messages, and is way more contextual and relative than absolute.
@Riduidel @markus I can agree that we cannot agree :) Once there is a Java rewrite of a Rust/Go app that is "better" in terms of hardware usage and performance or there is Java footprint in Kernel or heavy web stuff like Canva I might consider info is obsolete.