Skip to content
BENIBIX Learn

Source Code

Development🧩 Programming ConceptsPrograms

Also known as Code

The text of a program, as people write it and read it.

Think of it like

Think of it like the sheet music for a song. People read it, and the band plays from it.

Example

Lucy opens a file called hello.py. The two lines inside are the source code of her first program.

Why it matters

Source code is the part people can change. Keep it safe, because without it a program is very hard to fix.

Definition

Source code is a program written as text that people can read. You type it in a plain file, using a programming language. A tool then turns it into something the machine can run. Developers read, share and fix source code, not the machine version. When people say "the code", they almost always mean this text.

Example code

python
# hello.py
print("Hello, world!")
One file with one line. That line is the whole source code.

Common mistake

Thinking the app on your phone is the source code. That is the built version; the code is the text it came from.

Key takeaways

  1. 1
    Plain text. Code is typed into simple text files.
  2. 2
    For people. Code is written so people can read it.
  3. 3
    Turned into a program. A tool makes the code run on a machine.

Learn it properly