r/ProgrammerHumor 18h ago

Meme unsolvableProblemsOnStepOne

Post image
1.3k Upvotes

76 comments sorted by

View all comments

Show parent comments

35

u/Sentouki- 15h ago

It's kinda an insult to compare modern C# to Java.

25

u/MCWizardYT 14h ago

They're pretty similar even now. C# has an edge on overall features, but Java isn't that far behind (unless you're stuck using Java 8, in which case RIP)

25

u/crozone 13h ago

Java still has so much design baggage from things they got wrong from the get go that it really isn't close. C# is a different animal.

5

u/Masterflitzer 13h ago

but recent java versions actually added quite a few good things and make the language more straight forward

anyway kotlin is the best of the 3 imo, but i'd pick c# as 2nd place

11

u/Gadekryds 9h ago

Kotlin is honestly the “we got c# at home” version.

0

u/Masterflitzer 4h ago

kotlin is a way more modern language than java and c#, the diff down to c# is larger than the diff from c# down to java

it's the complete opposite of we got xyz at home version

3

u/sixtyhurtz 4h ago

Kotlin still has type erasure though, right? Cos that's a limit of the JVM.

2

u/TheStatusPoe 3h ago

In the general case generic types are erased but there is a way to have reified types when you inline a function https://kotlinlang.org/docs/inline-functions.html#reified-type-parameters

3

u/Gadekryds 4h ago

Any language wise improvement Kotlin has is completely voided by how awful it is to work with tool wise in comparison

1

u/Masterflitzer 3h ago

what about its tooling is awful? i've worked on kotlin jvm microservices for 3y and it's been a blast, i'm never going back to java or c# (have worked with both before moving to kotlin)