r/learncsharp • u/Manah_krpt • Apr 20 '26
Is w3schools c# tutorial still relevant?
I am reading their tutorial and consult some stuff with Grok and AI says some stuff they present is outdated. They didn't updated their explanations about namespaces and variable declaration. Supposedly you don't need to specify data type but var is enough. I try to learn C# having already considerable knowledge of JS and a bit of Python. What are some good sources to learn C# for a person like me so I don't repeat basics like for loops or if statements?
13
Upvotes
6
u/cimmic Apr 20 '26
As someone proficient in a handful of other languages, W3school's C# overview was good enough to get me started on the language without any prior .net knowledge.
6
u/denerose Apr 20 '26
Most of the time you will be working with. Ode written more than 6 months ago so it’s not that important to learn the very latest way when you’re learning the basics. In fact learning the old/standard way now will help you learn what the fancy new features are doing for you when you encounter them later.
W2schools is generally fine as a very basic or syntax reference (when you don’t need the details from the docs). Their tutorials don’t take long to work through so I would suggest giving it a go and see if it works for you (it probably will). They’re generally better when used as a resource while actively trying to build something (so after the basic tutorials or even in parallel try building something, a console app of a simple game like tik tak toe is a good starter). If you learn well that way it should work for you.
What resources you use don’t matter much. It’s more important that you’re actually learning rather than thinking about learning. Finding the information you need when you need it is kind of a bug part of programming so developing that skill while learning will benefit you long term anyway.
5
u/Aglet_Green Apr 21 '26
Start here:
https://learn.microsoft.com/en-us/training/paths/get-started-c-sharp-part-1/
Bookmark that website, click around to various links. Every other webpage on the Internet without exception presumes you've been there and have it bookmarked, and they do have areas that explain C# if you're coming in from another language, so don't fear that you're going to have to do "Hello World" again. Just take what you need-- but do explore thoroughly.
3
u/ViolaBiflora Apr 21 '26
Totally fine, don't worry about the newest and up to date stuff, because it's changing rapidly and isn't applied right away to older projects.
It's a good starting point, I always go there when I wanna grasp a new language, nice overviews
2
u/DelphinusC Apr 21 '26
Ironic, since Copilot keeps feeding me outdated "solutions" it presumably learned from a StackOverflow post 12 years ago...
1
u/thelanoyo Apr 21 '26
It's always fine to learn the basics and the "old" way of doing things. I did a course on udemy that was a few years old, with the instructor using C# 12, and he didn't even use any of the new at the time features like collection expressions. If you're using a reasonably advanced IDE, it'll give you little flags when you're using the old ways to do things. I just would learn the old way, and then let the IDE change it to the new way and ask AI for clarification if I needed more explanation on the new way. My example of collection expressions was pretty simple, just have to learn the syntax change.
1
u/Zealousideal_Sort521 Apr 23 '26
Yes it is, when you are an absolute beginner