1. Introduction#
Every program you write runs on a physical machine, is written in a language with rules, and is built by a developer using specific tools. This chapter sets the context: what computing is, how C# fits in, and how to set up a working environment.
Why this chapter matters
Jumping straight into syntax without context leads to confusion later. Understanding the big picture — hardware, software, compilers, and IDEs — gives you a mental model that makes every later topic clearer.
Programs are instructions executed by hardware through layers of abstraction
A compiler translates C# source into machine-runnable code
An IDE integrates editing, building, and debugging in one place
Every C# program follows a predictable structural template
Learning goals
By the end of this chapter, you should be able to:
explain the role of hardware, operating system, and language runtime
identify the parts of a basic C# program (namespace, class, Main)
compile and run a simple program using your development tools
describe what a compiler and interpreter do differently