r/learnprogramming • • Oct 30 '26

In which project application is Csharp useful?

So, I have been using java till now and recently got switched to Csharp, and I wonder why we have to use Csharp instead of some other language. Like our project is about a payment app in which the crew customers or staff use it to keep record of all the transactions. So, why do we use Csharp is it because maybe they are more compatible with the situation there or is it for some other reason. And this question extends to other things as well in which way csharp is better than java.

5 Upvotes

33 comments sorted by

View all comments

Show parent comment

1

u/[deleted] 26d ago

Better? I would check that statement. First, Java has a huge ecosystem, and the JVM has several nice languages (Kotlin and Scala for instance). And the JVM C2 compiler is rather good. I don't know how C# compares, but Java is really not a bad stack. Regarding the language, there is this old grudge against type erasure for generics, but it's not really a problem. And since Java 8 there have been a lot of features. *My* main complain against Java isn't Java, it's Oracle.

1

u/Massive_Value8302 26d ago

"I would check that statement."
I have checked that multiple times.

Java loses every time nowadays.

"but Java is really not a bad stack"
It is not by any means, but ... C# is just better and more modern. Java can't keep up, the copy took over the og.

"*My* main complain against Java isn't Java, it's Oracle."
Both have bbeg behind them, but out of the two, I would say micro$oft is the safer bet.

1

u/[deleted] 26d ago

Well, I don't know enough of C# to tell (by far). Regarding Oracle vs Microsoft, meh. Neither. I prefer languages backed by a foundation, or even better, by a standardization body. Businesses need ultimately need to make money, they are not charities. Totally understandable, but for my programming tools I don't want to have such a constraint, and the risk of enshittification.

1

u/Massive_Value8302 26d ago

"I prefer languages backed by a foundation, or even better, by a standardization body."
Sure but we aint talking about those here, are we?

Lets stay on the topic.

1

u/[deleted] 26d ago

Right. It was just about MS vs Oracle. None if I can choose. But I'm genuinely interested by your argument, not sure how C# does on Linux, I might check if I have the occasion.

1

u/Massive_Value8302 26d ago edited 26d ago

"None if I can choose"

We aint talking about your choices. :) I agree with you tho.

"not sure how C# does on Linux"
Somewhat of a hassle to get set up as per MS, but .NET has been crossplatform for years. So it is fine, I would say. I wouldnt use it as the first choice on linux tho.

.NET itself is quite easy to use, but I have some experience on it.

I just checked few ranking sites and I appear to be wrong at least on popularity. Java beats C# in every one. This comes with lil caveat:
The one I trust the most, stack overflow, says that as a whole java is TINY bit more popular, and in the noob section (1-5 yoe) java is way more popular, but as the exp goes up, the popularity of C# rises. IDK what one should take from that tho.

I have used both and I just like c# better, but the difference is... semantics and bickering mostly. I find the C# little bit more friction free and modern.

1

u/[deleted] 26d ago

When I checked (and that's long ago), C# seemed to have some features of Delphi, which is of course not surprising. Well, let's add it to my todo list... It doesn't hurt to try. Thanks for the comments.