This series of post is intended to help CodeNewbie who are interested to learn C# and help them with resources which they need to feel safe and motivated to continue learning C#. The posts will also consider exploring the learning path which one can use to get started.
The motivation for this blog post came from the below tweet. Though the tweet was specific to certain scenario, I wanted to expand more on that tweet through this blog post.
baskarrao - #MaskUpOhio #BlackLivesMatter@daveabrock @buhakmeh I would also suggest getting knowledge on stuff which they might actually work while they intern. CRUD Concepts , API Concepts , Basic Cloud, then finally dependency injection, design patterns and the list goes..20:18 PM - 08 Jul 2020
It is no doubt that there are various free resources which are available to learn C#. But one might feel overwhelmed over time because there are many concepts to learn in C# and one might feel exhausted.
So, it is important to make sure that you don't overcommit yourself and stop your journey in the middle.
Can you try a google search now - "Is C# object-oriented?"
This is where you will start. Yes, C# is an object-oriented programming language. If you are not familiar with object-oriented programming, I suggest getting to know them before diving into C#.
It is important to know about object-oriented programming concepts before diving deep into C#.
Once you get an understanding of the object-oriented aspects it is now time to apply the same learning into C#. This is where you will start to learn the building blocks of C# like Data Types in C#, Classes, Interfaces, Constructors, Inheritance, Polymorphism, Encapsulation and Abstraction.
Self-Check - At this stage you should be able to answer the below questions.
- What is a string? Are strings mutable or immutable?
- What are value types and reference types?
- What is a class? Write an example of class?
- How do you write a method or function in C#?
- What are class members?
- What is a variable and constant in C#?
- What are access modifiers in C#?
- How do you write interface in C#?
- How to implement inheritance in C#?
- How do you write an abstract class?
- What is the difference between interface and abstract class?
- What is the use of keyword virtual?
- What is a constructor? What are the different types of constructors?
Don't worry about the Hello world now.
At the end of Day 1 you will be having a basic understanding of building blocks in C#.
It is fine if you are not able to answer all the questions at the end of Day 1.
Everyone has their own pace to learn. If it is not Day 1 it can be end of Day 3 but don't stop until you have complete understanding of the building blocks of C#.
What is more important is to maintain your momentum until you will be able to answer all the above questions confidently.