How does coding physically work?

120 viewsOtherTechnology

Like how exactly can a bunch of letters, numbers, and punctuation symbols make your computer do all kinds of things? Plus what happens inside the computer when it executes the code?

In: Technology

22 Answers

Anonymous 0 Comments

Obviously it’s a *lot* more complicated than this, but code that a person writes on a computer ultimately just tells electricity where to go inside your computer’s processor to make certain outputs.

The words or letters or symbols (or combination thereof) that you write in your chosen programming language ultimately are used by your computer as binary code, which is just 1s and 0s. Those 1s and 0s represent voltage changes. For example 1 = some voltage and 0 = no voltage.

So when you save the code you’ve written as a program, you’re essentially just saving a sequence of 1s and 0s, or in other words, your code is a sequence of on and off voltage changes.

When you actually run this code, you’re essentially telling your computer processor what to do with this series of voltage changes. This voltage changes go through logic gates in your computer processor and turn those inputted voltages into electrical signal outputs as logical operations. Pack a few hundred million of those into a CPU and you’ve got yourself a computer that can browse reddit or send an email or play a game.

You are viewing 1 out of 22 answers, click here to view all answers.