OpenBlog

Share your thoughts

avertise at openblog Do you need help in your relationship?

Previous article: What steps does software go through

What does programming source code look like?


Digg!
I bet many of you when you get to thinking how does software actually work cant really image the right way, how is the perfect framework set so that everything works just how it should and never makes mistakes. Correct me if I am wrong, but those of you who have no experience with programming, cant simply understand how can some nonsense row of random characters, arranged nicely in a source document once create what can you see on the screen all the time. Well even though it is hard to believe such thing, it is absolutely true, software is nothing but code. Software is just code lined up making the hardware work as we want it to.


Quite simple piece of programming code in C++, taken from a tic-tac-toe game


If you look at this example what you can see is probably lots of words, numbers and operators just lined up in some way making absolutely no sense what so ever. This particular code is just one piece of one function which is again just one of several functions making one piece of total program (sounds complicated, it kind of is). The tic-tac-toe game to which this code belongs is about 3000 lines long (very, very short program). Operating system Windows Vista is written in over 15 000 000 lines (just to see the comparison).

Finally why did I publish this code? Well to help you (those who have no idea about programming) image what does code that once becomes software look like. What is under all the design and graphics which you can see on your screen every day, what had to be written in order for you to even use computer the way you do today. Funny thing about this code is that it is actually the easier way for people to write software. Hardware itself operates only using two inputs, commonly described as 0 and 1. One can say that software is a very long chain of those 0 and 1 which are lined up just in the one correct way to make any program work.
share on facebook StumbleUpon.com

Comments on this article


Add own comment

Name

Heading

E-mail (Optional)

Web site (Optional)

Comment this article: