Professional developer and amateur gardener located near Atlanta, GA in the USA.

  • 1 Post
  • 1.99K Comments
Joined 1 year ago
cake
Cake day: June 13th, 2023

help-circle


  • This is getting a little better nowadays.

    > cat Hello.java
    void main() {
        System.out.println("Hello, World!");
    }
    > java --enable-preview Hello.java
    Hello, World!
    

    Things to notice:

    1. No compilation step.
    2. No class declaration.
    3. Main method is not public static
    4. No String[] args.

    This still uses preview features though. However, like you demonstrated already, compilation is no longer a required step for simplistic programs like this.



  • Java is amazing and I love it, and I agree that this is not really a good list of problems. (Not that I expect green texts to be well thought out, rational, real, fair, or anything other than hyperbolic rants lol.) There are good reasons to critique it and the ways people use it, but this isn’t it.

    Particularly funny is the one about race conditions. That’s something you’d have to deal with in any sort of multi threaded environment.














  • I’m on Lemmy essentially 99% of the time. When I’m on Reddit it’s because of niche hobbies that have more presence there. It’s very rare. (Or search index results.)

    I never use Mastodon. I was only on Twitter for very niche and interactive hobbies that do not have enough people to engage with on Mastodon. I mostly use BlueSky now but still use Twitter on occasion. It’s like 50/50 at the moment, but that’s a lot considering my BlueSky account is only like two weeks old.

    Lemmy has enough content to keep me entertained for general browsing and most of my hobbies.