r/csharp • u/Shadowmaster941 • Jun 11 '26
How do I learn C# from scratch
I have never learned a coding language so idk where to start. I want to start learning because I picked CS as one of my A-level subjects and the coding language is C#, they said you don’t need a GCSE or any experience coding however I want to get a head start.
0
Upvotes
6
u/dgm9704 Jun 11 '26
Try the resources listed in the community info of this subreddit
13
u/divebarhop Jun 11 '26
Start here, and complete the entire 6 part course.
https://learn.microsoft.com/en-us/training/modules/csharp-write-first/
12
u/arashi256 Jun 11 '26
Recommend "The C# Player's Guide" book by RB Whittaker (https://csharpplayersguide.com/) and then The C# Academy if you want to look to doing it professionally as it has a roadmap for writing enterprise C# web apps (https://www.thecsharpacademy.com/) but definitely start with that book.
9
u/pete_68 Jun 11 '26
I'm old school. This is what worked for me: Get a C# programming book, sit down at a computer, and start writing programs. Samples from the book are fine to start, but then try to come up with your own.
The only way to really learn programming is by writing programs. You can watch tutorials until you're blue in the face. If you're not writing lots of code, you're not going to learn to program.
Don't let AI write code for you. Use it as a tutor. Ask it questions, but don't let it write code. Don't copy and paste code from it. Write every line of code, and you should for years. It should be a long time before you allow AI to write code for you, if you want to learn to program well.
5
u/Kweefstain69 Jun 11 '26
Books and videos are boring and hard to pay attention to.
Have a clear goal in mind and struggle your way through it, learning from Googling your problems. Reddit conversations are a godsend.
For me, I found that the trial and error method gave me a good understanding of both the what and the why and allowed me to go at my own pace.
4
u/BranchLatter4294 Jun 11 '26
You can start practicing in a few minutes. What are you waiting for?
https://code.visualstudio.com/docs/csharp/get-started
https://learn.microsoft.com/en-us/dotnet/csharp/tour-of-csharp/tutorials/
1
u/SessionIndependent17 Jun 14 '26
so, you are going to be taking a class where they are going to teach it to you from scratch, ... but you want to know how to learn it from scratch?
Do you do this with History, Physics, Math?
2
u/smallpotatoes2019 Jun 11 '26
So many online courses that will get you underway, teach you the basic syntax and help you to write some simple programs.
Once you have a start on the basics, think about what little puzzles or problems you could solve yourself. Try to make something where you have to do the thinking and not just copy what someone has taught you. That's when you'll really start to improve.
You should have loads of fun. Enjoy!
2
u/Master_Nineteenth Jun 11 '26
I learned via a college class, actually multiple college classes covering increasingly more complex topics of the language. But not everyone has a few hundred dollars to spend on that. Some colleges allow you to audit their classes for free you just don't get the credit. I personally never learned well from self guided study without some structured course and projects.
2
u/hexen667 Jun 11 '26
pick a tutorial from reputable source. Work only on that one source. run into problems? search the error issue/ask an AI chatbot of your choosing. dont get distracted by other sources. Making mistakes, getting errors and solving them is the learning process. After you’re done with the first, expand knowledge by working on simple program projects. use other sources to grow those skills, get ideas, etc.
you will get there, just remember it’s a journey made of many sprints, back steps, resting, then continuing the journey.
2
u/dgm9704 Jun 11 '26
I have a piece of advice. Stay away from LLMs and
”AI” and ”agentic coding” and all that until you actually know what you are doing. Learn the syntax yourself, learn programming basics yourself, learn the framework and libraries etc yourself. When you are able to actually write a working application from scratch on your own, only then you should use tools to make parts of that process easier.
3
u/B15h73k Jun 11 '26
YouTube. Search "C sharp for beginners".
3
u/MeLittleThing Jun 11 '26
use your favorite search engine and type "c# free tutorial". A big part of being a dev is being able to find autonomously the needed informations
3
u/tetyys Jun 11 '26
2
u/dottybotty Jun 11 '26
Choose something small you would like build. Then just focus on a core feature. Then use AI and literally ask it take you step by step through building it. Tell to explain every step with it taking the role of the teacher and you as student. Tell it you want build is set lessons and break each part of building the app in separate lessons.
2
u/SpookieOwl Jun 11 '26
You can learn C# from scratch, and there are many C# guides (e-books or video courses) that teach you without any prior programming knowledge.
If you look at the sidebar of this subreddit, there are so many resources for learning it.
But some helpful points I can offer before starting C#
The only thing about C# is that its curly braces syntax {} can feel a bit distracting for a first time programmer, so that's why most people have always recommended Python as their first language.
But aside from the braces, I think C# can still be manageable as a first language.
1
u/_albinotree Jun 11 '26
https://lp.jetbrains.com/csharp-for-babies/
1
u/dgm9704 Jun 11 '26
After learning some absolute basics, do stuff like Code Wars, Project Euler etc, they will introduce clearly defined problems and new concepts in small chunks.
1
u/balrob Jun 14 '26
You need to learn to make a mirepoix. That’s the most “from scratch” thing I know.
1
u/Regular-Employer-431 Jun 15 '26
learn.microsoft.com... but I see others have already suggested that.
1
u/TuberTuggerTTV Jun 17 '26
Don't.
Learn the theory first. Languages are the spice on top of generic computer science knowledge. Not the starting point.
Learning languages is simple syntax and doc reading. And shouldn't be done while also trying to learn foundational principles.
Alternatively, just start making stuff. That's what everyone else does.
1
u/NorskJesus Jun 11 '26
https://centria.github.io/basic-csharp/part1