What is logic?
Logical reasoning helps us explain why something happens.
If you set up two computers in the same way, giving them the same instructions (the program) and the same input, you can pretty much guarantee the same output. This is because computers don’t make things up as they go along or work differently depending on how they feel – they are predictable. Because of this, we can use logical reasoning to work out exactly what a program or computer system will do.
Children quickly pick logic up for themselves. Watching others and experimenting for themselves, even very young children quickly develop a mental model of how technology works. A child learns that clicking a certain button brings up, for example, a list of different games to play, and that tapping a certain part of a screen produces a reliably predictable response.
At its heart, logical reasoning is about being able to explain why something is the way it is.
Why is logic important?
Deep inside a computer’s central processing unit (CPU), every action performed is reduced to logical operations based on electrical signals – everything a computer does is controlled by logic.
Software engineers use logical reasoning all the time. In developing new, effective code, they draw on mental models of the workings of computer hardware, operating systems and programming languages. They’ll also rely on logical reasoning when testing the new software, searching for mistakes (“bugs”) and fixing them (debugging).