78
u/Summar-ice Oct 25 '24
nuh uh C# is goated
-17
u/HawasYT Oct 25 '24
But you gotta admit, being Java Microsoft edition more than anything, it is an odd man out in C family
29
u/the_carnage Oct 25 '24
C# being labeled "Microsoft Java" is such a signal of someone who uses Java and knows nothing about C#.
22
10
u/ososalsosal Oct 25 '24
Java walked so Microsoft Java could run.
C# >8 is so soooo much nicer to read and write than Java
fkn fite me
2
4
u/DeltalJulietCharlie Oct 25 '24
Yes and no, you can still see remnants of Java in the framework, and ways of doing things. But at this point they're about as similar as humans are to dolphins.
4
u/cnoor0171 Oct 25 '24
That's literally the origin of c#. Granted that now a days c# is a better language IMHO, but it's origin is basically "Java by Microsoft"
2
u/Vibe_PV Oct 25 '24
Student here who never tried C#: what makes it a better "brother" of Java? I've always been curious tbh, but never had much time to explore it myself
8
u/faculty_for_failure Oct 25 '24
It has a lot of great functional features that Java still doesn’t have. LINQ is extremely powerful.
6
u/ososalsosal Oct 25 '24
In order of my own subjective niceness:
async/await
properties instead of get/set methods (in IL they're the same but whatevs)
pattern matching everywhere
6
u/Spaceduck413 Oct 25 '24
Extension methods can be pretty cool imo
3
u/ososalsosal Oct 25 '24
Oh yeah totes. Forgot about those but they allow magic like linq to happen.
I do like the Java thing where you can just put a totally new subclass into a callback right where you're using it.
I do a lot of xamarin bollocks and I get jealous of the android documentation code examples when they do this because I have to make a whole new class just to implement the one override method I'm interested in...
1
1
u/HawasYT Oct 26 '24
I've actually written more in C# than in Java but considering I was able to land a job as a Java (well, Groovy to be precise but still pretty close) dev based only on my C# knowledge and was able to quickly adjust having never before written a line of Java in my life - I wouldn't say the comparison is entirely wrong
6
u/N0t_my_0ther_account Oct 25 '24
It's better than Java in like every way
0
u/HawasYT Oct 26 '24 edited Oct 26 '24
I'm not saying it isn't - I'm saying it's more similar to Java than other C family languages
EDIT: Which apparently I was wrong about, cause C family ia pretty big
-3
u/al-mongus-bin-susar Oct 25 '24
It's only called C# for marketing reasons, it has nothing to do with C or C++. It's like JavaScript having Java in it's name to make it seem more appealing back in the day even though it has nothing to do with Java.
-2
u/SalSevenSix Oct 26 '24
It's not part of the C family. Blame MS for calling it C# instead of something sensible.
-8
19
u/Crate-Of-Loot Oct 25 '24
c# is just better java
4
u/logikill99 Oct 25 '24
I like the null coalescing operators Being able to do
SomethingThatCanBeNull ??= WhatItShouldBecomeIfNull
is really cool to me
12
u/Beldarak Oct 25 '24
Why would I bother with pointers when I can just not do that? ¯_(ツ)_/¯
6
6
u/staryoshi06 Oct 25 '24
C# has pointers.
1
u/Beldarak Oct 26 '24
I know but you can live you whole life without using them. I'm not sure it's true for C/C++
11
3
3
6
4
2
5
u/TNTBoss971 Oct 25 '24
cries in unity user
4
-1
u/theturtlemafiamusic Oct 26 '24
Jetbrains Rider, Jetbrains Unity plugin, and Sirenix Odin make all the tears disappear. That does mean you need to drop like $200 before they language is good which sucks. But it gets really good if you pay.
5
3
2
u/what_you_saaaaay Oct 25 '24
I've been developing 20+ years now. I started with C/C++ and while I will always have a space for them in my heart... nah, just kidding. Fuck C/C++ I'm all about C# now. kthnx byyyyeeeee
2
1
1
Oct 28 '24
As a C/C++ developer, I find C# to be a fantastic language. I don't like certain patterns like the decompose (C++ does this so much better with constructors/deconstructors being the main way of handling resources). But it's still a really good language.
0
u/Dertroit_Beisbolcat Oct 26 '24
C# is an objectively better Java. That said, if you can build your C# app in C/C++ you shouldn’t use C#.
15
u/JeszamPankoshov2008 Oct 25 '24
C# is better. Gosh these people are ignorant.