r/AskProgramming • • Oct 14 '26

Career/Edu Should I learn C#

I'm a CS student, year 4. My first entry into programming like most people was HTML, CSS, JavaScript, and then backend development with Node/Typescript. My main goal has been to get a programming job, or internship (or anything at this point 😭), but I've always hated writing Node, just never liked it and now I'm considering switching stacks.

I enjoy writing C (I built a chess engine from scratch) and C# seems like C with oop so I don't think it should be too unfamiliar. Also it seems there might be hiring opportunities...hopefully.

Please advise

2 Upvotes

28 comments sorted by

View all comments

0

u/prodjsaig Oct 14 '26

I think C# is not the best thing to learn unless you actually use it for its primary strengths. It is good for game engines I believe it lurks below by David brevik is made in C#. Also it can call windows apis so you could make an application as well. But an application to do what exactly?

This is the forefront of computer programming always use the language where it’s good at. That is to say you can’t learn many languages because you should specialize in one and know of a few.

C++ would be in my opinion a stronger choice because it is used so extensively for applications. Having a high learning curve will guide you to being the best possible programmer. Which you could then pick up C#, rust or go if you should come to having to do an application or tool in those. Only if it’s that languages strong suit.

2

u/YMK1234 Oct 14 '26

This is so misinformed it's not even funny.

0

u/prodjsaig Oct 14 '26

You should provide an opinion instead of trying to insult people right away. The biggest problem with programming is that there are too many languages and differing sets of standards. I guarantee you’re better off specializing in one primary language. C++ just happens to be a good skill to have because it combines C with oop.

1

u/YMK1234 Oct 14 '26
  1. C# is not "good for game engines". The main reason its used there is because unity uses it for scripting. The main use case is backend for web dev, and enterprise software.
  2. C# is not tightly bound to windows or it's APIs these days, and hasn't been since at least a decade
  3. C++ is not comparable but much more low level, and archaic

All of these facts are also given in the rest of this thread if you'd have cared to read it.

0

u/prodjsaig Oct 14 '26

It depends I mean I want nothing to do with web development. Too many changing standards and obscure things to learn that you’ll never use again.

I’m talking core programming to learn how to be a good programmer and make an application or command line tool. C# can do it but C++ will teach you more and is more widely used for applications.

1

u/Distdistdist Oct 21 '26

There is nothing wrong with learning C++. My only advice why not to spend a ton of time learning it simply because there are much better languages in today's world. Everything that C++ and Java got wrong - C# got it right.

Now, to really understand how things work - one should learn Assembly. This is where true understanding of how CPU and memory and hardware come together. Everything else since that was just an incremental enhancement.

C++ is actually weakly typed language, did you know that? It still allows for dangerous pointer type casting and implicit type reinterpretation. C# does not.

C++ has multiple class inheritance (so does Java btw). This has not been implemented in C# for a very good reason - it gives programmer ability to create chaotic dependencies and implementations that have no practical reasons in modern architecture. C++ is giving one oh so so many more ways to shoot one in the foot.

So no, C++ is not a better choice over C# by any means at all.

1

u/Distdistdist Oct 21 '26

Wow. Yes. This is what happens when you let your knowledge get really stale.

C# is part of .NET framework (currently on version 10 LTS) that is multi-platform framework that can run virtually everywhere today.

You can use .NET to build front-end (Blazor), back-end, mobile cross-platform (iOS/Android), services and APIs that can run on either VMs or Linux containers.

And, the most important part, it's build once - run anywhere.

1

u/prodjsaig Oct 21 '26

Well it depends what you’re looking to do C# can be acceptable and even chosen as your main language. It’s what its strengths are which usually you don’t find until you need it.

I think for learning Python and c++ are just as likely to be good choices

1

u/Distdistdist Oct 21 '26

Well, to be completely honest, one should learn, or dabble with, as many languages as humanly possible. This is the only way to understand strengths and weaknesses of those.

But question was - "Should I learn C#". And answer is "Absolutely yes". Should OP learn C# only and stop there? Answer is "Absolutely no". Is C++ used extensively for applications, while C# is not - absolutely wrong statement to make. C++ is just much older. That doesn't give it any merit just because of that.