getbetterat.work
TECH_GUIDE_01
START HERE

Understand C# in
Plain English.

C# (pronounced "See Sharp") is a tool made by Microsoft. It lets you write instructions that tell computers, phones, and video games what to do.

What is C#?

Think of a computer as a very fast worker who only speaks a weird machine language. C# is a language that is easy for humans to read and write.

You write the C# code, and a translator turns it into the machine language the computer understands.

Who owns it?

Microsoft built C# in the year 2000. Because Microsoft built it, C# works incredibly well on Windows computers.

But today, it is "open source". That means anyone can see how it is made and use it to build things for Apple Macs, Linux, and mobile phones, too.

What Can You Build With C#?

Video Games

Using a tool called Unity, C# is used to build huge 3D and 2D video games.

Websites

C# powers the hidden "back-end" of massive, secure websites for big companies.

Desktop Apps

Almost all normal apps you click and open on a Windows PC are built with C#.

Mobile Apps

You can write C# code once, and it will create an app for both iPhones and Androids.

The Secret Engine: .NET

You will often hear "C#" and ".NET" (said "dot net") used together. They are not the same thing, but they need each other. Let us use a car example:

C#

The Steering Wheel & Pedals.

This is the language you actually type out and use to give directions.

.NET

The Car Engine.

This is the massive system that reads your C# steering and actually makes the car move.

How C# Organizes Code

C# uses a rule called Object-Oriented Programming.

Instead of writing one giant, messy list of commands, you create small, neat boxes of code called "Objects".

Example: Making a Game

  • You create an object called Player.
  • You create an object called Enemy.
  • If the Enemy has a bug, you only fix the Enemy box. The Player box stays safe.

What Does C# Look Like?

HelloWorld.cs
using System;

class Program 
{
    static void Main() 
    {
        // This line tells the computer to print a message
        Console.WriteLine("Hello, getbetterat.work!");
    }
}

Code Explained: The code above grabs a standard tool from the system (System), finds the main starting point (Main), and writes text to the screen (WriteLine).

Why Should You Learn C#?

Jobs

Because large companies trust Microsoft, thousands of highly paid jobs require C# skills.

Safety

C# is strict. It catches your spelling and logic mistakes *before* you run the program, saving you hours of frustration.

Speed

C# is incredibly fast. It is perfect for heavy tasks like moving 3D characters or saving millions of bank records.

A Very Short History

2000

C# is Born

Microsoft creates C# so programmers have an easier, better way to build Windows apps.

2014

Open to Everyone

Microsoft makes C# open source. Now it can run on Apple and Linux, not just Windows.

Today

One Language for Everything

C# is now one of the top 5 most popular programming languages in the world.

C# vs Other Languages

Language Difficulty to Learn Best Used For
C# Medium Video games, Big Business software, Windows.
Python Very Easy Data, AI, simple scripts.
C++ Very Hard Things that need maximum possible computer speed.

The Best Tool to Write C#

You can type C# in a basic notepad, but no one does that.

Programmers use a free program made by Microsoft called Visual Studio. It acts like a super-smart spelling checker. If you type code wrong, it highlights it in red and tells you exactly how to fix it before you hit the "run" button.

Visual Studio

The home of C#

Variables: Your Storage Boxes

In C#, you constantly need to remember things (like a player's score or a user's name). You store these things in memory using "Variables". Think of them as labeled moving boxes.

PlayerName
"Mario"
Score
9500

Data Types: Sorting the Boxes

C# is very strict. It forces you to say exactly what shape of data goes into each box. You cannot put a word into a box meant for numbers.

string

Used for: Text

Example: "Hello", "Password123"

int

Used for: Whole Numbers

Example: 42, 100, -5

bool

Used for: True or False

Example: true, false

If/Else: Making Decisions

Programs would be boring if they did the same thing every time. "If/Else" statements let your code make choices, just like a crossroads.

Is the player's health zero?
IF YES: Show "Game Over" screen.
ELSE (NO): Keep playing the game.

Loops: The Repeating Wheel

Imagine you need to spawn 100 enemies in a game. You don't write the "spawn" code 100 times. You write it once, and put it inside a Loop. It spins around and around until it finishes the job.

Start Loop
Spawn
Enemy
Spawn
Enemy
Repeat 100x

Functions: The Mini-Machines

A Function (sometimes called a Method) is a block of code that does one specific job. You give it materials, it does work, and it spits out a result.

Input

2 and 3

Function

"Add_Numbers_Together"

Output

5

Classes vs Objects

Earlier we mentioned "Object-Oriented Programming". Here is the biggest secret: A Class is the paper blueprint. An Object is the actual house built from that blueprint.

The Class

The code file that says: "A house has 4 walls, a roof color, and a door."

class House {
  string RoofColor;
}

The Objects

You can build 100 different objects from one blueprint!

House 1
(Red Roof)
House 2
(Green Roof)

NuGet: The Free Store

Imagine you are building an app, and you want to let users save a PDF file. Writing code to create a PDF from scratch is incredibly hard.

You don't have to build it yourself! Other programmers already did it, and they give it away for free.

C# has a built-in store called NuGet (pronounced "New Get"). You just search for "PDF Maker", click download, and suddenly your app knows how to make PDFs. It saves you months of work.

Debugging: Squishing Bugs

When your code breaks, it is called a "Bug". Finding the bug is called "Debugging". Visual Studio makes this easy by putting a red squiggly line exactly where you messed up, just like a spelling error in a word document.

Error

int playerHealth = "One Hundred";

Computer says: "You tried to put text into a number box. Change 'One Hundred' to 100."

Where to Get Help

Stack Overflow

A massive website where millions of programmers ask questions and post solutions.

Microsoft Learn

The official, free instruction manual written by the creators of C#.

GitHub

A website where you can look at other people's C# code to see how they built things.

A Day in the Life

9:00 AM

Check the "Bug List" to see if any users found errors in the app.

11:00 AM

Write new C# code to add a requested feature (like a new payment button).

2:00 PM

Use the Debugger tool to figure out why the payment button isn't working.

4:00 PM

Send the finished, working code to the rest of the team.

Your Next Steps

1

Download Visual Studio

Get the free "Community" version from Microsoft's website. It has everything you need.

2

Write "Hello World"

Follow a 5-minute video guide to make your computer print your name on the screen.

3

Pick a Path

Decide if you want to build games (learn Unity next) or websites (learn ASP.NET next).