Read a sample: 1. Following Software from Idea to Execution
A Linux computer can browse the web, edit a photograph, serve a website, or help a programmer build another program. Those tasks look unrelated, but the software behind them shares a useful story: someone created instructions, made choices about how others could use them, and found a way to deliver those instructions to a computer that could run them.
This book follows that story from the human-readable beginnings of software to a running program. Along the way, you will meet programming languages, licenses, applications, packages, and repositories. These topics often appear separately in study materials, but they become easier to remember when you can see how they connect.
You do not need to be a programmer to follow the journey. You do need to become comfortable asking precise questions: Is this code a person reads, or something a computer runs? Is this a legal permission, a price, or a technical property? Is the software installed on this machine, or merely available from a source?
Imagine that a community garden needs a simple way to track which plots are available. A volunteer decides to create a tool that records plot numbers and displays their status.
The need comes first: people want reliable information about the garden. A spreadsheet might be enough. A web application could allow several people to check information from their own devices. A small command-line program might suit one person maintaining the records on a Linux computer.
An application type describes the general kind of work software performs or the way people use it. A spreadsheet application, web browser, database server, and text editor have different jobs. A specific product is an example of an application, not the category itself.
Suppose the volunteer chooses to create a small program. How will the intended behavior be expressed so that a computer can carry it out?
A programmer normally writes instructions in a programming language. The resulting text is called source code. It can describe operations such as accepting a plot number, checking stored information, and displaying a message.
Source code is written in a form people can inspect and modify, although understanding it may require knowledge of the language and the project. Source files might be accompanied by documentation, configuration files, tests, and other materials. The code expresses instructions and structures according to the rules of its language.
C, Python, Java, and JavaScript are examples of programming languages. A shell language can also be used to write scripts that direct a command interpreter to perform tasks. Each language has its own conventions and common uses.
A language is not the same thing as an implementation of that language. The language provides rules and expressions; an interpreter or compiler is software that processes programs written in it. Saying “Python” might refer to the language in one sentence and a Python implementation in another, so context matters.
One common path uses a compiler to translate source code into another form, often producing machine code suitable for a particular kind of system. A build may include several steps: compiling source files, linking them with needed code, and producing an executable file.
An executable file is a file intended to be run as a program. In a typical compiled application, it can contain machine code that the processor can execute. It is a different artifact from the source files used to create it. Having an executable does not automatically mean you have its source code, and having source code does not mean a finished executable has already been built.
Another common path uses an interpreter, a program that processes instructions from another program and carries out their effects. For example, a shell can read a shell script and execute the commands it contains.
These are starting models, not rigid boxes for every language. Some implementations translate code into an intermediate form and use a virtual machine or other runtime software to execute it. A runtime environment supplies services or components a program needs while it runs. Rather than assume that a language can only ever be compiled or interpreted, ask how a particular implementation runs a program.
Chapters 2 and 3 explore these models in more detail. For now, notice that source code, a compiler, an interpreter, and an executable have different roles in the journey.
When the garden volunteer’s program is ready, it might sit on a computer’s storage as one or more files. Those files are not the same thing as a running instance of the program.
A process is an instance of a program in execution. When a user starts an application, the operating system creates and manages the resources associated with its execution. Depending on the application, starting it may involve more than one process.
An application can be installed without currently running. Installation places and configures software for use; running starts an instance. Compilation is separate again: it translates code rather than simply launching an already prepared program.
Some programs rely on libraries, collections of code that provide functionality other programs can use. Instead of writing every operation from scratch, a developer can use a suitable library. A program may need particular libraries available when it is built or when it runs. Chapter 2 returns to this relationship without asking you to write code.
For the exam, identify what is happening in the scenario. Is someone editing instructions, producing an executable, installing software, or starting it? Each points…