r/learncsharp • • Jan 04 '25

How am I supposed to learn C# ?

1 Upvotes

I have some background in Python and Bash (this is entirely self-taught and i think the easiest language from all). I know that C# is much different, propably this is why it is hard. I've been learning it for more than 4 months now, and the most impressive thing i can do with some luck is to write a console application that reads 2 values from the terminal, adds them together and prints out the result. Yes, seriously. The main problem is that there are not much usable resources to learn C#. For bash, there is Linux, a shit ton of distros, even BSD, MacOS and Solaris uses it. For python, there are games and qtile window manager. For C, there is dwm. I don't know anything like these for C#, except Codingame, but that just goes straight to the deep waters and i have no idea what to do. Is my whole approach wrong? How am i supposed to learn C#? I'm seriously not the sharpest tool in the shed, but i have a pretty good understanding of hardware, networking, security, privacy. Programming is beyond me however, except for small basic scripts


r/learncsharp • • Aug 08 '21

The Programmer's Oath

1 Upvotes

I, state your full legal name, will never use a single-statement block without brackets so long as I shall live, so help me state your favorite Deity's name.


r/learncsharp • • Jun 12 '22

Why does an implied type even need var?

0 Upvotes

For example:

var number = 1;

The compiler should be able to understand that word = integer is variable without being specifically told it's a variable

var greeting = "Hello";

The compiler should be able to understand that a word = word in quotes is a string without being specifically told it's a variable

Seems like moving away from string greeting = "Hello" etc then they should just go all in and also remove the type declaration in obvious situations.


r/learncsharp • • Sep 10 '22

Compiler

0 Upvotes

Which C# compiler app is good to use in mobile phone? OS android.


r/learncsharp • • Mar 21 '19

Hey guys, i was trying to code a program that outputs a draw of the golden Fibonacci sequence, but I don't understand C# very well. Can someone help me?

0 Upvotes

r/learncsharp • • Sep 05 '24

Help to learning how to properly get started

0 Upvotes

Hello and sorry about writing this post, I know you guys get multiple posts per day about how to start learning this language. I'm deeply sorry for bothering you. Also, this might be a long text, sorry

So, let me start from beginning

I decided that I wanted to learn how to program and I went with Python with my first language (Yes, I'm not total newbie even though I actually am, reasons explained later) Now why I wanted to learn programming? I wanted to make video games...

And why I chose Python? GDScript (programming language of Godot game engine) is similar to Python.

Now, The way you learn is by making lots of projects, guess what, I did not do that almost at all because I wanted to make video games, and Python is not suitable for that. I messed up badly. I only did one single project on my own and that was very very simple text adventure. I used if statements, functions and variables to built that and so I do know about them. Most of my learning however came from watching YouTube tutorials and other sources again and again as I restarted my learning multiple times, going nowhere. I was in learning/tutorial hell so to speak.

I know I should have done projects and built my knowledge little by little, but Python isn't designed for programming games and trying to make a game with GDScript was impossible because I did not have enough knowledge to build a game. And I know video game programming is a whole other world compared to regular programming due to API and such.

Which brings me to today. I want to move to learning C# due to it being better suited for video games. However I am not sure how should I go about it, jumping straight to Unity would be stupid because like I said, video game programming is very different. I should focus on learning the fundamentals first and then trying my luck. However people say that you should make projects that interest you so that you actually enjoy learning.

Which way should I go, doing console based projects first or do Unity stuff? Or should I forget this all and stay as non-programmer gamer?

Like I said, I know some concepts already but I never put them to use in any way. So basically I know nothing right?

Thank you and sorry for bothering you, I know I could have googled my answers from other posts but I guess I have weird enough situation going that making my own post is worth it


r/learncsharp • • Sep 30 '20

Collection of best C sharp Tutorials for Beginners of all time

1 Upvotes

Found an amazing list of all the best C# courses of all time. Many of these courses are very helpful to learn C# for beginners and build applications and projects.


r/learncsharp • • Dec 26 '23

Need Urgent Advice: How Long to Learn C# with 6 Hours of Coding Daily?

2 Upvotes

Hey everyone,
So, here's the deal. I've been offered a job through my father's friend's relative at a company, and they've been incredibly kind in teaching me HTML and CSS. However, I've hit a roadblock with C# and have been procrastinating for way too long. I've been making excuses and it's starting to catch up with me.
Now, I'm committed to turning things around and learning C# properly. If I dedicate 6 hours a day to coding, how long do you think it'll take for me to grasp the basics and start working on simple projects, even with the help of online resources?
I know I messed up by delaying this, but I'm determined to redeem myself. Any advice, resources, or guidance you can offer would be greatly appreciated. I genuinely need all the help I can get.
Thanks in advance!
P.S :- Any good reasons or excuses to tell my boss? I've used up the "C# is almost done" card, and I'm out of excuses. I want to assure them that this is the last time—I won't let it happen again. Any advice, reason, or guidance you can offer would be greatly appreciated. I genuinely need all the help I can get.


r/learncsharp • • Nov 13 '25

Can I use Visual Studio 2013 for learning C# and Dotnet?

0 Upvotes

r/learncsharp • • Oct 11 '26

How to solve that C# interview test

0 Upvotes

Sharing with you another C# mini-capsule where I present an interview-like snippet of code and resolve it. Hope you like it !

Any feedback is much appreciated <3
Thanks for reading.


r/learncsharp • • Jan 11 '19

Learning C# for Unity!

0 Upvotes

How does one detect keystrokes and make a sprite move or is the key detection in unity? I'm super new at this, any help would be great!


r/learncsharp • • May 28 '19

C# classes/constructors/interfaces

0 Upvotes

Hello, I have project to do on C# the project looks like 3 classes that need to inheritance each other also 1 interface and some other methods if someone think he can help me out i'll appreciate it.

===================================================================== so i had to make program for controlling parking lot.it should get,save and shows the information.

i will try to explain it as simple as i can. First i have to create 3 classes : Cars , LightTrucks , HeavyTrucks they both should contain: type , brand , model; in constructor

actually the input should be like this: parkinglot parkingname1 2 2 2 parkinglot parkingname2 2 1 1 Car Kia Seed Lighttruck Citroen Jumper Car VW Polo Lighttruck Ford Tranzit Heavytruck MAN TGM18 Car Audi А6 Heavytruck Volvo FM12 Print something1 End

and the Output should be: parked cars in parkinglot something1: Brand Kia, Model Seed Brand VW, Model Polo Brand Citroen, Model Jumper Brand Ford, Model Tranzit Brand MAN, Model TGM18 Brand Volvo, model FM12 Parkinglot something1 has the following locations: Car 2, busy 2 Lighttrucks 2, busy 2 Heavytrucks 2, busy 2 Parkinglot something2 has the following locations: Car 2, busy 1 Lighttruck 1, busy 1 Heavytruck 1, busy 1

///////////////////////////////////// so what should it do create parking lot with command parkinglot name 2 2 2 (first 2 = car ; second Lighttruck ; third Heavytruck)

after i create 1 or more parkinglots i should be able to enter cars,lighttrucks or heavytrucks.

like: car Audi A6 Lighttruck Citroen Jumper Heavytruck Volvo FM12

and then Enter "End" to stop the program or Enter Print parkinglot name like "Print something1" and the program should print "parked cars in parkinglot something1: Brand Audi, Model A6 ; Brand Citroen, Model Jumper ; HeavyTruck Brand Volvo, Model FM12 ; Parkinglot something1 has the following locations: cars 2 , busy 1 ; lighttrucks 2 , busy 1 ; heavytrucks 2 ,busy 1"


r/learncsharp • • Nov 29 '21

I want to know What Card game system Would Work for a Monster Mash/Bash style Dressing up Mix-&-Match card game?

0 Upvotes

I tried rectangle cards on a T-pose man and it didn't look right to me.


r/learncsharp • • Jan 22 '22

C# Programming Questions on Strings

0 Upvotes

r/learncsharp • • Nov 23 '24

Do you use Enums?

6 Upvotes

I'm just curious cause you got arrays or tuples. In what situation do you use enumerations?

Edit: Sorry guys I didn't elaborate on it


r/learncsharp • • Dec 09 '20

What is a Syntax Error and how to fix it (CS1026, CS1513, etc.)

1 Upvotes

Short video I made on this subject. Hope it helps someone!

https://www.youtube.com/watch?v=TNOyPz4QooE&ab_channel=UnityGameProgrammingForBeginners


r/learncsharp • • Aug 25 '22

I am really struggling with databases.

1 Upvotes

I’ve read the documentation. I flat out do not understand. Can someone strip the process down for me?


r/learncsharp • • Jan 06 '25

My computer can't handle Microsoft VS

1 Upvotes

Would like to ask if there is an alternative for it?

I was trying a text editor online but the problem is I can't use User Input?

When I try to put "Console.ReadLine();" It just fails everytime or it will load for 2 mins and then fail.


r/learncsharp • • Dec 02 '21

ive been learning to use csharp in unity, and still confused about some things

0 Upvotes

is there somewhere i can find definitions for stuff like "private", "void", "getaxis" etc


r/learncsharp • • Feb 13 '26

anything specifically for game dev?

0 Upvotes

im trying to make a mod for terraria but im more familier with python so im struggling alot


r/learncsharp • • Oct 21 '24

Could Microsoft VS damage my Laptop?

0 Upvotes

Hi guys Im trying to learn C# cause Im bored and Im trying to stay away from Dota for a while hahaha.

Im just worried that it could cause damage like continuously ran in the background of my laptop without me noticing even if I close it down.

I know its a stupid question, please forgive me haha. Im just worried cause I only have 1 of it.


r/learncsharp • • Jan 29 '21

Introduction to C# Book

0 Upvotes

The book is arranged according to the C# 8.0 and C# 9.0 concepts and use cases. This book provides fundamental and applied knowledge about the modern C# and .NET :• The book contains an introduction to the modern C# 8.0 and C# 9.0 • Different explanatory icons• Cheatsheets • Summaries and practical explanations with code and examples will surely keep you engaged while reading this book. • Each feature is explained with pros and cons

Paperback:

https://www.amazon.de/-/en/dp/B08VC6THS7

Kindle Edition:

https://www.amazon.de/-/en/Bassam-Alugili-ebook/dp/B08TQWR8Q9/


r/learncsharp • • Oct 05 '20

Why doesnt my code work?

0 Upvotes

Hi!

Could someone please tell me why my code doesn't store the integers of the user inputs?

static void Main(string[] args)
        {
            Random computernumber = new Random();
            int guess = 0;
            var guesses = new List<int>();
            int cnumber = computernumber.Next(1, 100);
            int i = 0;

            while (guess != cnumber)
            {
                Console.WriteLine("guess the number");

                try
                {

                    guess = Convert.ToInt32(Console.ReadLine());


                    if (guess > cnumber)
                    {
                        Console.WriteLine("the integer is lower");
                    }
                    else
                    {
                        Console.WriteLine("the integer is higher");
                    }

                }
                catch (Exception)
                {

                    i--;
                }

                i++;



            }
            var xcnumber = Console.ReadLine();
            guesses.Add(int.Parse(xcnumber));

            foreach (var sum in guesses)
                Console.Write($"{sum},");
            Console.Write("It took you " + i + " tries");
        }

    }
}

r/learncsharp • • Oct 16 '19

F# for C# developers

0 Upvotes

In this article, you will learn about an easy way to become an F# programmer for C# developers.

https://www.c-sharpcorner.com/article/easy-way-to-become-an-f-sharp-programmer-for-c-sharp-developers/

Or on my website:

https://www.bassam.ml/