this post was submitted on 13 Nov 2024
404 points (96.8% liked)

Greentext

6948 readers
1120 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:

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

founded 2 years ago
MODERATORS
 
(page 2) 50 comments
sorted by: hot top controversial new old
[–] lurklurk@lemmy.world 6 points 9 months ago (18 children)

Hello World

30 minutes of boilerplate

writing imports

$ cat <<EOF > Hello.java
public class Hello {
  public static void main(String args[]) {
    System.out.println("Hello world!");
  }
}
EOF
$ java Hello.java
Hello world!

ok

[–] MooseTheDog@lemmy.world 6 points 9 months ago (4 children)

Welcome to java, we have a couple unconventional ways of doing things, but overall I'm like every other mainstream oo language.

People: AHH! Scary!

Welcome to python. your knowledge of me wont help you elsewhere as my syntax is purposefully obtuse and unique. Forget about semicolons, one missed space and your code is as worthless as you after learning this language.

People: Hello based department

[–] Classy@sh.itjust.works 5 points 9 months ago (2 children)

Oh my god I got fucked by a python script once because of a single space. It took forever to figure out what went wrong

load more comments (2 replies)
load more comments (3 replies)
load more comments (17 replies)
[–] kerrigan778@lemmy.world 5 points 9 months ago (3 children)

Java is terrible and I hated it but I feel like this stuff is not why, this mostly just seems like stuff that most powerful object oriented languages do.

load more comments (3 replies)
[–] Clbull@lemmy.world 4 points 9 months ago (6 children)
load more comments (6 replies)

I learned programming with Java and then thankfully never had to use it since CS102. HATRED

[–] Drz@feddit.uk 4 points 9 months ago
[–] AVincentInSpace@pawb.social 4 points 9 months ago

Anyone who knows me knows that I hate Java with the fire of a thousand suns, but this is just sad. Most of these are true of any programming language. There are plenty of legitimate reasons to hate Java besides the fact that its concurrency utilities are as utterly shite as those of its 90s contemporaries, like the fact that it does not support multiple inheritance, or remote interface implementation, or any form of namespacing besides the goddamned filesystem, or unsigned integers, or string formatting, or

[–] Malfeasant@lemm.ee 3 points 9 months ago

Must be several years old - otherwise, javafx deserves quite a bit more ire.

[–] Zementid@feddit.nl 3 points 9 months ago (4 children)

I really enjoyed the text.

From the perspective of a python programmer it all seems valid.

A Java-Dev would probably write the same about an embedded engineer.

load more comments (4 replies)
load more comments
view more: ‹ prev next ›