Modern ways of creating applications
The first programs were written as numeric sequences of processor commands, that is machine code, and finding a mistake in them was very hard. Assembler gave the commands short names and made the work easier, but a program still depended on one type of processor. In high-level languages the writing came closer to human language and a translator converted the text into machine code; in structured programming a big task was divided into procedures and functions, so several programmers could work on one program. Object-oriented programming joined data and the methods that process it in one object: for example, a window object has a width and a height (properties) and open and close (methods). In visual programming ready objects (a button, a label, an input field) are placed in a window with the mouse and their properties are set, and the environment itself writes a large part of the program text. The next stage is generic programming: one algorithm or method is written so that it works with different kinds of objects and data (for example, one “area” command for a triangle, a circle and a rectangle). Delphi is a visual environment and its language is Object Pascal; Delphi is now produced by Embarcadero, and a free alternative is Lazarus (based on Free Pascal).
A pupil gave a visitor directions from the school to the library in two ways. The first was “walk 12 steps, turn right, walk 40 steps”, the second “go to the library”. The second is easier, but the listener must know the way. In programming too, a translator turns a high-level command into machine commands.
App and game programmers write in convenient languages, while those who program household devices and vehicles sometimes use languages closer to the machine.
In your notebook write how to draw a simple house in small steps, then in one short sentence, and think about which one needs a reader who already knows how.
“The chain of stages”: six cards (machine code, assembler, high-level, structured, object-oriented, visual) are shuffled; a group puts them in the right order in 1 minute and says one sentence about each.