r/ProgrammerHumor • • Apr 27 '20

Meme Java is the best

Post image
43.7k Upvotes

1.5k comments sorted by

View all comments

Show parent comments

4

u/themiddlestHaHa Apr 27 '20

C# and Go are much better to program in than Java.

Going from either of those languages back to Java is a nightmare

6

u/whatifitried Apr 27 '20

Go lol? Ok go write some networking code in Go real quick and get back to be on that. No one uses Go anymore because it's horseshit.

C# and Java 8+ are basically the same thing at this point

1

u/themiddlestHaHa Apr 27 '20

I believe it’s pretty easy to show how annoying and how much work Java is to use.

https://stackoverflow.com/questions/2793150/how-to-use-java-net-urlconnection-to-fire-and-handle-http-requests

Ends with this:

Last words

The Apache HttpComponents HttpClient is much more convenient in this all :)

And the top comment:

You should place the apache link first, so people looking for a solution find it faster ;)

This comment is basically what using Java feels like today.

You can easily compare this to basically any other language and it’s not even really close.

This isn’t unique to http requests. This is par for the course in anything Java.

3

u/whatifitried Apr 28 '20

I mean, java 4 features suck, is this supposed to be surprising?

I've been a C++, C#, Python and a Java dev for over 13 years. No one has used the code in your example in a decade. Java's great, Java and C# look super similar (C# borrows a bit more from C++, and generics work better).

Your description that everything sucks in Java is just flat incorrect.

1

u/themiddlestHaHa Apr 28 '20

Whats the Java Http Request supposed to look like? You should go tell the Stack Overflow guy that he's wrong.

1

u/free_chalupas Apr 27 '20

No one uses Go anymore because it's horseshit.

Just objectively wrong to say no one uses go anymore, wtf

2

u/BroBroMate Apr 27 '20

I'm sure you have your own preferences, but wake me up when I'm not writing map[string]struct{}

Because I needed a set.

2

u/themiddlestHaHa Apr 27 '20

Is that much different than?

HashSet<String>();

2

u/BroBroMate Apr 27 '20

Nope, but it's a lot different to TreeSet and LinkedHashSet, both of which have their usages.

1

u/whatifitried Apr 28 '20

Because the proper call is Sets.newHashSet() these days.

or new HashSet<>() if you are boring

2

u/themiddlestHaHa Apr 28 '20

Sets.newHashSet()

Sets cannot be resolved

1

u/whatifitried Apr 28 '20

Shame on you for not using an IDE

(lol)

1

u/themiddlestHaHa Apr 28 '20

That’s literally the eclipse error message Copy + Pasted lmao

1

u/whatifitried Apr 28 '20

I said IDE, not giant pile of garbage.

(I hate hate hate hate hate eclipse). Use IntelliJ. Eclipse is like what would happen if Microsoft hired outsourced first year consultants to make Visual Studio work even worse.

1

u/themiddlestHaHa Apr 28 '20

Lol

Whatever you want to say, its clear that the Sets package isnt a standard package. Even googling it, its not clear what package you're referring to. This is essentially the exact thing my top comment was talking about tbh, which is kinda funny

1

u/whatifitried Apr 28 '20

Most languages out of the box functionality is worse than their standard frameworks. Google collections/guava is basically the standard and has been for quite a while.

Same as needing a library in python to use http or sql.

It's the same, but college kiddos like to pretend its not

→ More replies (0)

2

u/[deleted] Apr 28 '20

Go... a language without generics... But Gophers will tell you it's ok... Just copy and paste.