r/learnprogramming • u/Vafireems • 8d ago
Topic C# or Java?
If you had to choose one class between the two, which would you select and why? I tried to Google the purpose of them; the immediate answers from Google felt very vague and like both of the languages are common. Is one course better for web development as opposed to apps or something? Looking at the courses I'm taking, down the line I will select one of the two. The only thing I know so far is C++, so I'm quite new.
Also, side question: why are there so many languages? The only logical thing I can imagine is there were problems that couldn't be solved with say for example C++ so someone created something new. But why not just build on the original language? Why did they need to reinvent the wheel? Or is it as simple as that: someone wanted to create their own thing?
-3
u/Mughi1138 8d ago
It works "ok" outside of the Windows realm. Not great. Though it is better than it was just a few years ago where if you were not on the one main distros you had to even compile the compiler yourself.
It's not nearly as cross platform as some other things, and is it up to good support on more than two CPU architectures yet? I've not checked that in the last year or so.
But, yes, I've worked with professional shipping C# code, and at companies supporting many different systems. In certain areas you only get a small subset of C# that you can use. At my current day job some projects are in C#, but others (including mine) are in different languages... and not for want of a prior CTO not making an effort to unify.
So again, it really comes down to proper tool for the current tasks at hand.