Lesson 0: Why Programming at All? And Why C#?
A computer doesn't understand intent — it does exactly what's written, letter for letter. If someone types text into a form field meant to hold only a number, in C# the compiler (the program that checks and translates your code) stops it immediately, before the program ever runs. In more permissive
Programming means giving a computer precise instructions it can repeat without error. In C# there's a gatekeeper (the compiler) that checks every variable in advance, catching type mistakes before the program even starts running.
- static typing
- An approach where every variable's type (number, text, etc.) is known and fixed at write-time, and the compiler checks it before the program runs.
- compiler
- A program that reads source code, checks it, and translates it into a form the computer can run — stopping if there's a type error.
- .NET
- The cross-platform runtime that runs C# programs — on Windows, macOS, and Linux, in backend services, and in desktop apps.
- Unity
- A very widely used game engine where gameplay code is written in C#.