January 1, 2010

Programming mystery solved! It’s all math, folks ^.^

Filed under: Computers, General — by Writer @ 1:52 am
Tags: , , , ,

Well, one thing’s for sure. The programming mystery I’ve had for about seven years has been solved tonight. I’ve always aspired to be a programmer, and yet I couldn’t figure out why C++ (the language I tried to learn) was so limited in its arguments. The bulk of its commands seemed to be centered around mathematics, something which I couldn’t quite wrap my head around. How were programs created from this nonsense? How can you make something real out of pure math? Well, pcguide.com explains this phenomenon quite clearly.

A processor only understands a few limited instructions, which are usually quite primitive: for example, a processor can multiply two numbers, or make a decision based on the result of comparing a number against another one. All programs you use on your PC are built from these mathematical “building blocks”, even though their complex appearance makes this difficult to believe.

Heh, had I known that from the start, I probably would have programmed something by now. Instead, I’ve been scratching my head thinking this must be some sort of mistake, that maybe I’ve got the wrong version of C++, and “what’s wrong with my computer?” Hehe.. at least I have this misconception clarified now.

Blog at WordPress.com.