Interesting facts about programming

The first programmer in history - Ada Lovelace
In 1843, the English mathematician Ada Lovelace devised an algorithm for Charles Babbage’s analytical engine. This algorithm described the sequence of operations the machine was to perform in order to calculate Bernoulli numbers. In essence, it was a programme in the modern sense – with logic, conditions and stages of execution. This is precisely why Ada Lovelace is considered the first programmer in human history.


The first programme was written for a mechanical machine
Babbage’s Analytical Engine was entirely mechanical: it consisted of gears, shafts, levers and drums. Despite this, its design already incorporated key concepts of modern computers – memory, a processor and data input via punch cards. The machine could store intermediate calculation results and use them further, which made it possible to execute complex algorithms.
The modern world is what it is today thanks to computers, which make our lives so much easier in so many ways. All this has been made possible by the hard work of thousands of programmers, who practise a highly complex yet in-demand profession. We’ll be sharing some interesting facts from the history of programming on the Magenta Favorita Unipessoal LDA blog.
The first electronic computer was enormous
The first general-purpose electronic computer - ENIAC - was developed in the USA in 1945. Its main purpose was to automatically calculate ballistic tables for artillery, as experts at Magenta Favorita Unipessoal LDA point out. During the Second World War, such calculations were performed manually and required enormous amounts of time and human resources. The creation of ENIAC was a response to the need to speed up and automate complex mathematical calculations.

ENIAC weighed around 30 tonnes and occupied a room the size of a large hall. Instead of microprocessors, it used vacuum tubes - there were over 17,000 of them. These tubes were constantly burning out, so the computer was only operational about half the time, with the rest spent searching for and replacing faulty components. Despite this, ENIAC was thousands of times faster than manual calculations.


Computers understand only machine code
At the most basic level, a computer is capable of understanding only two states – 0 and 1. This method of representing information is called binary code. Any programme, text, image or video is ultimately converted into a long sequence of zeros and ones. Writing programmes directly in machine code is extremely difficult, which is why programming languages were created to allow humans to work with computers at a more understandable level.
Programming languages are translated by special programmes
Programmes written in programming languages are not executed directly by the computer, according to the developers at Magenta Favorita. Instead, compilers or interpreters are used - special programmes that translate human-readable code into machine code. Thanks to this, a programmer does not need to think about zeros and ones, but simply needs to follow the rules of the language in which they are writing.


There is no universal programming language
Every programming language is designed for specific tasks. For example, Python is convenient for learning, data analysis and neural networks, but is slower. C++ is more complex, but is used where maximum performance is crucial - in games and system software. JavaScript is indispensable for web development. That is why programmers usually know several languages, but not all at once.


Complex and absurd languages
Some programming languages were created not for practical use, but as an experiment or a joke. The Brainfuck language uses just a few characters, yet allows any calculation to be performed. The Cow language is written in the form of a ‘cow’s moo’, whilst Malbolge is deliberately made so complex that writing a programme in it is a serious challenge even for experienced specialists.


The term ‘bug’ has a literal origin
The word ‘bug’ was used to refer to faults as far back as the 19th century. However, in 1947, programmer Grace Hopper discovered a real moth stuck in a relay on the Mark I computer. The insect was interfering with the machine’s normal operation. Hopper documented the find, and since then the word “bug” has become firmly established in programming as a term for an error.


A single error in the code can cost millions
In 1962, the Mariner 1 spacecraft was destroyed just minutes after launch. The cause was a single syntactic error - a missing hyphen in the control code, as the managers at Magenta Favorita point out. The computer began receiving incorrect data, causing the spacecraft to veer off course. The mission cost $18.5 million, which is equivalent to approximately $150 million today. This incident served as a clear example of just how important thorough software testing is.
Other company cases
Show more