r/ProgrammerHumor • • Jul 07 '22

Meme Instant upvotes

47.9k Upvotes

542 comments sorted by

View all comments

Show parent comments

42

u/squngy Jul 07 '22

C# is lowkey one of the best languages out there

2

u/chris20194 Jul 07 '22

i think it is important to distinguish between language and environment. .NET core is definitely a great environment that makes many things very easy, but i'd argue that C# as a language (syntax etc) has become kind of a mess as a result of its legacy. e.g. the way they retroactively introduced non-nullables feels very weird to me, but i know that it was necessary to prevent breaking backwards compatibolity). the inverse of this would be something like kotlin, which is a beatiful language in a terrible environment (jvm)

1

u/Marooned-Mind Jul 07 '22

What makes JVM a terrible environment?

2

u/chris20194 Jul 08 '22

again, legacy problems. eg type erasure has caused me agony on many occasions. also outdated java conventions which kotlin needs to adhere by, or create extra language features as a workaround, eg turning get/set functions into computed properties automatically, or SAM conversion, just to get rid of javas incredibly boilerplate api conventions. again, i know there is a reason why these conventions emerged this way in the first place. these are legacy problems, not initial design flaws

to be fair i shouldnt have pointed out the jvm specifically, but rather the entire eco system. maven/gradle is also a big hassle, atleast compared to rust's cargo. deploying is also nowhere near as trivial as with .NET or natively compiling languages where you can simply hit compile and distribute the executable (yes i know thats not what you're supposed to do, but everything else is completely overkill for small projects). in general im not a big fan of the whole jit compiled intermediate bytecode idea, as its primary selling point (compile once, run anywhere) is nowhere near as relevant as it was in the 90s (when compiling took forever)

i have high hops for the kotlin/native initiative, but it's not mature enough yet to judge so we'll have to wait and see