How do Computers work?

05-06-2015

It's all in the bits

Today's computers come in all different shapes and sizes. They can be the desktop computer that you have at home or work. They can be the smart phone you use everyday to make phone calls and browse the web. They can even be the watches you wear!

Although, computers were not always small. In fact, they used to take up entire rooms. And in those days, they were very limited in what they could do. But the interesting fact is that they all work the same way. The only difference is that the components have gotten smaller and can do things much faster today.

Computers need 4 things in order for them to work. Input, memory, processor, and output. All computers take data in a form called binary. You and I as humans view numbers in decimal. However, a computer can only take in data in binary. This means that we use the digits 0-9 in counting. The computer can only use 0's and 1's. Now, this can seem very limitting, but the computer has no problem scaling up due to the speed in which it can do things. Now binary is basically a system of on and off switches. The combination of on and off tell the computer what that piece of data is. A little more information on binary can be found here.

This binary information is input into memory and stored there. This can be done via a number of means such as a keyboard, mouse, microphone etc. The memory can be a hard drive or RAM(Random Access Memory). The data waits for the command to process it by the processor. This is where a set of instructions is passed to the data and the processor then proceeds to output what it has completed. The output can be displayed on a screen or printed to a printer or even played on speakers.

Today, most software engineers do not give the instructions to computers using binary also called Machine Code. Today we have languages that interpret what we want to send to the computer into binary for us. We have an assortment of languages such as Java, Python, Ruby, Javascript, etc. that enable us to write instructions much more easily.

This is what makes computers so fascinating. Imagine having to think like a computer. All the 0's and 1's flooding your brain. I wouldn't say it's impossible as we have very complex brains. Computers are just faster at processing the data. Our brains however, possess different strengths that computers may one day be programmed to have.