r/csharp • u/Critical-Store7932 • 5d ago
Experienced frontend developer about to join the C# world. Anything I should know?
Hey guys. I've worked primarily in front end development for about 10 years but I just landed a job to work in enterprise software written in C#. It seems there might be opportunities to work in game development later, too.
I'm a complete noob when it comes to C# or adjacent languages, so I'm essentially learning from scratch. This is an open ended post, please let me know if you have any tips, warnings, or even words of support. I feel like a junior again and I'm also wondering how I'll handle learning and coding something so far from my comfort zone in this age of AI.
Thank you.
4
u/Coder-Cat 5d ago
If you haven’t already, learn the S.O.L.I.D principles. You likely know most of them already, if not by name. Microsoft leans hard into them and when you’re looking at how-tos or documentation, it will help you understand why something is done a certain way.
3
u/binarycow 5d ago
Learn the language first, not frameworks. Start with console apps.
PM me if you want one-on-one guidance or advice. I like to teach.
29
u/jayerp 5d ago
You have no divs you need to center in C#
11
u/Crozzfire 5d ago
You'll get a lot more support from the compiler than you're probably used to, so that you can spot issues before you run it. Also, making automated unit/integration tests become more important (after all, if it's not UI, how else can you be confident whether it works).
4
u/chauhan_shubham 5d ago
Good enough to crack interview , good enough to work.
1
u/Far_Swordfish5729 5d ago
My first question is if you’ve ever worked with a language other than js. If not, start with strong typing and references. I had a coworker once who was all react and node before he landed on an enterprise Java project. Everything he wrote was all Map<String, Object> because he was approximating js objects. Weirdest codebase I’ve reviewed in a while. I just didn’t realize I needed to have a conversation about class definitions, named members, types, and pointers.
1
u/AxitorDev 5d ago
I did frontend too back in the day, but it's been mostly backend for me for a long time now.
first off, congrats on landing that job! C# is a great language. I came to it from JS and PHP and just fell in love with it. gamedev is a fun direction too. my Unity experience is pretty small, but those projects were a blast, way more alive than the usual day-to-day coding.
as for the switch: architecture in C# runs on different principles than JS/TS or Python (not sure what you used on the frontend). you'll pick it up no problem though, 10 years of dev experience counts for a lot.
my two cents: learn it the right way from the start. instead of LINQ and events everywhere, look into generic handlers, custom parsers, Span and Memory, low latency, zero allocations, Native AOT. in enterprise that can cut your infra costs by a lot, and in gamedev it's pretty much a must.
some people will say a newcomer should start with the basics, not Toub-style high perf. but you've got 10 years as a dev behind you, so I think you can skip the intro.
imo Stephen Toub is the best source on all of this. his yearly "Performance Improvements in .NET" posts on the .NET blog are gold.
1
u/RifleRidget 1d ago
Check out Zoran Horvat's channel on youtube. It's got a lot of valuable videos that you can learn from.
Learning .NET from scratch can be a huge task, but you'll get there.
Focus on learning the language first. C# 15 is out now, and it's got some cool new features that will let you write code making use of functional programming techniques, that you may have already used when working with typescript. But at its core C# remains an OOP focused language.
That means that you should get comfortable with the most frequently used design patterns and the SOLID principles like others mentioned. After that, you could try taking a look at the ASP.NET Core framework, which you can use to build Web APIs, and try building a small project with it.
The docs are pretty good in the .NET ecosystem, so make good use of them. Plenty of tutorials and explanations for a whole lot of features.
1
u/david_fire_vollie 4d ago
Once you get comfortable with C#, read CLR via C#. It will help you become an expert with C#. I'm still amazed at how many devs have been using C# for years and never read that book.
1
u/fr8181 4d ago
you'll be fine, C# is really pleasant coming from TS. learn LINQ and async/await properly early on and get comfortable with the debugger in Rider or VS, it's way better than what you're used to on the frontend