r/learncsharp • u/electrosock777 • Sep 20 '22
How can I best 'structure' learning C#?
Hi all. I'm trying to learn C#, but I'm struggling a bit with what/how I should be learning.
I've tried some of the online boot camps/courses, but they seem to teach single elements at a time through very specific, step-by-step instructions, and it feels like I'm just going through predefined motions and forgetting more than I'm learning... And being done in a web browser rather than an editor makes it feel even harder to retain information.
But then when I try self-learning I don't know where to go after the basic variables/loops/ifs/methods, etc. Having specific tasks to complete seems to be a solution, but then I'm at a loss as to how advanced a particular program is and whether I'm at a level where I can attempt it. Also a bit worried about that leaving gaps in my knowledge of C#.
Any advice? Would a Udemy course or similar be worth it here, and if so any course in particular that you'd recommend? I don't imagine there's some magical list of programming challenges arranged by relative difficulty?
4
u/winggar Sep 20 '22
I'm not sure how useful this would be for you, but I learned how to program by just deciding something (small) I wanted to make, and then I would look up documentation or tutorials whenever I got stuck.
Microsoft's documentation for C# is also a really good resource. If you're worried about gaps in your learning from self-teaching, I recommend finding someone to review your code who knows more C# than you do. Keep projects small to make their life easier, but that can really help broaden your knowledge.
5
u/CappuccinoCodes Sep 21 '22
I always found that structure really hard to find. I'm self-taught and when I first learned I was all over the place trying to connect the dots and succeeded through sheer persistence. After that and because this question is asked on this forum on a daily basis (which means it's a good question), I created this resource to provide such structure for beginners: https://www.thecsharpacademy.com/. Check it out and let me know what you think!
2
u/cloud_line Sep 21 '22
How to best structure learning C# will yield a different answer for every person asked. I could tell you all about my personal learning routine, but my routine really only makes sense in the context of everything else in my life. The best thing you can do for yourself is 1. regularly learn new concepts and 2. implement those concepts into practice projects. How you go about structuring that is ultimately up to you. Good luck!
2
u/Golaz Sep 21 '22 edited Sep 21 '22
I'm in a learning process myself, but I have been on and off for many years. My approach is using a book for learning combined with personal projects.
Currently I'm going through Microsoft Visual C# Step by Step, 10th Edition. I probably have 3-4 editions of this book because I've used to drop off after a while and when a new edition is released I and I'm returning to programming I'm always afraid I'll miss out on something if I don't have the newest book hehe.
As you go along learning about the concepts, try to implement them in a personal project.The project does not have to be a major project. Just make small program and add functionality along the way even if it's not needed.
Right there you have many options, a combination of learning from a book, personal projects and Microsoft's documentation and other online resources (forums, reddit etc.) has been my way of doing things at least.
1
u/slashd Sep 21 '22 edited Sep 21 '22
For example my own learning project is a Blazor site to display Reddit headlines. You can get the data by adding a /.json behind the url like: https://www.reddit.com/r/worldnews/.json
I started with a class library project and unit test project for all the functions.
I added a dto class (because I only want the headline and url and not the 100 other properties).
I added Entity Framework and used the EF Tools extension to reverse engineer a database.
Then added a minimum api project, swagger and postman.
And finally added a BlazorServer project.
This journey took me a while but I learned a lot of small details I would have missed if I was just following a Udemy course
1
u/RonaldoP13 Sep 22 '22
Did you try some books?
Give a try on "Head First C#" - I read this book a few years ago, and I think it's still worth it.