Comment on Anon tries programming in Java
babybus@sh.itjust.works 5 weeks ago
If it took anon 30 minutes to write hello world in java, programming is not for anon.
Comment on Anon tries programming in Java
babybus@sh.itjust.works 5 weeks ago
If it took anon 30 minutes to write hello world in java, programming is not for anon.
pinkystew@reddthat.com 5 weeks ago
We bow to your wisdom, wise gatekeeper
babybus@sh.itjust.works 5 weeks ago
Thank you. If you bothered to read a 5 minutes tutorial instead of posting to 4chan, you could also reach this level of knowledge.
pinkystew@reddthat.com 5 weeks ago
Don’t be mad, you’re the one that posted
babybus@sh.itjust.works 5 weeks ago
I thanked you for your reply and suggested reading a tutorial. How does that make me mad and upset? You’re acting weird.
lurklurk@lemmy.world 5 weeks ago
It’s like 5 lines of code
sugar_in_your_tea@sh.itjust.works 5 weeks ago
And most IDEs will autogenerate it for you.
That said, I think it highlights everything I hate about Java:
Why does it need to be a class? I’m not constructing anything?
Why is this a method? It should be a top-level function. Also, in most cases, I don’t care about the arguments, so those should be left out.
Excuse me, what? Where did System come from, and why does it have an “out” static member? Also, how would I format it if I felt so inclined? So many questions.
And here are examples from languages I prefer:
C:
Ok, makes sense, I start with nothing.
Makes sense that we’d have an entrypoint.
Again, pretty simple.
Python:
Ok, Python cheats.
Rust:
Ooh, entrypoint.
I have to understand macros enough to realize this is special, but that’s it.
In C, Python, and Rust, complexity starts later, whereas Java shoves it down your throat.
Malfeasant@lemm.ee 5 weeks ago
Some of us try to understand what we’re doing, rather than just copy/paste. It’s easy to discount how difficult learning the basics of something is when you’re already past it.