this post was submitted on 13 Nov 2024
839 points (96.0% liked)
Greentext
4604 readers
1459 users here now
This is a place to share greentexts and witness the confounding life of Anon. If you're new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.
Be warned:
- Anon is often crazy.
- Anon is often depressed.
- Anon frequently shares thoughts that are immature, offensive, or incomprehensible.
If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It's like 5 lines of trivial code
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.
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.