r/learnprogramming • • 20d ago

Learning C#

So basically, I have python fundamentals down, including OOP. The next language I'm learning is C# and I wanted to know: What are the best channels to learn C# (as someone who already knows OOP and altough seen as the easiest one, another programming language)? I don't just watch them, I tweak the code on my editor and make projects to apply my knowledge.

0 Upvotes

11 comments sorted by

3

u/Wauwser 20d ago

Microsoft learn

2

u/burnerburguerbirther 20d ago

Thank you. Will look into it

1

u/Wauwser 19d ago

I can recommend the TPL library,

1

u/Ojassuu 20d ago

Build a small CRUD api with Asap.net core minimal APIs + EF core and sqlite then add validation logging and test it helps and genuinely a better way to learn than any playlist

1

u/burnerburguerbirther 20d ago

Genuine question: what?

1

u/Massive_Value8302 19d ago

Build a backend which has crud-endpoints for users. 

Minimal API is one library for that.  Use SQLite as a database and entity framework (EF) as the orm. 

Validate inputs and make unit tests. 

Making projects teaches more than ogling videos. 

1

u/burnerburguerbirther 19d ago

Yeah I do projects to apply what I learned after I watch videos. For instance, after learning OOP, I made a terminal-based RPG where I had to use everything basically. Thank you for explaining what they meant! :)

2

u/Massive_Value8302 19d ago

Damn, they really fumbled by not naming it asap.net 

1

u/Aggressive_Ad_5454 19d ago

Make sure you use Visual Studio to help you learn C#. Understand that dotnet is part of the C# deal. The IDE, language, and framework go together.

Follow some of the project tutorials on Microsoft Learn. Push the projects all the way through to deployment.

Add JetBrains ReSharper to Visual Studio (30 day free trial). It offers to refactor (transform) your code into C# - specific idioms. You can learn a lot from those refactorings, even if you hit Ctrl-z and don’t accept them.

1

u/burnerburguerbirther 18d ago

I already set it up on my laptop and tried to write simple stuff like conditionals and loops just to see how both languages differ in syntax (python and C#). I am currently following Tim Corey's Tournament Tracker as it aligns with other stuff I want to learn (Some SQL, email forwarding, and of course, C#). Interesting suggestion though, will definitely use them at some point. Thank you :)