Computer Programming: Chapter: 02 - Know the Basics

Posted by naharazizi on Thursday, October 13, 2011



In a previous article, computer programming: Chapter 01 - Introduction, I talked about what the program and ended by saying that the computer does not understand English or for that matter any language we humans speak. I said that only computers understand the language of 0 and 1 year.

If you use your computer for any purpose up to now, you will agree with me, because you're using it mostly in English or any other language that you know. You could watch movies, listen to songs, create a document, sent e-mails, browse a lot of places, and even you would have read my articles on a human-readable language. Also, if you write a program or even seen someone do it, you might have noticed that even though they are not using the language of 0 and 1 year.

Even if we agree that there are people who speak the language of 0 and 1 is, looking at the other important thing that I said that "the instructions must be precise," you might be asking to be next to impossible to even write a simple computer program, if what I said was true.

Today, use a computer you do not need to know how a computer works or what language they are speaking to? All you need do is simply turn on the computer and when it is ready to use mouse and keyboard to point out some little graphic object on the screen, click the button, swipe a finger or two in case the device touch screen to dobiliračunalo do what is necessary to do so. An example would be what you need to read this article.

The reason computers are so easy to use today because of the hard work of some developers who have programmed for it to behave in certain ways. And, they're not trying to use a computer, but to learn how to program a computer. But the computer does not know anything other than 0 and 1 is called binary language, and remember that not all computers speak the same dialect. That is why the program on your desktop computer does not work on the iMac and vice versa.

Let me explain the example of two blind persons, where the first person (let us call him as a person) knows only English and another person (let us call him as a person B) only knows Sanskrit. Person-to person B to draw a sketch? Now, how do you expect the two to communicate with each other, it is not difficult. Person-not even be displayed in writing from the person B is slijep.Jedini way of communicating through a speech in a familiar language, giving precise instructions.

Now, the only way that both can interact with each other is having an interpreter. Now when the people-English speaking interpreter then translates the Sanskrit and repeated person-B. When person B is saying something in Sanskrit, an interpreter translates and re-repeated phrase in English to people. Now with the help of an interpreter, both are able to communicate very easily.

using a language interpreter solves our problem. We still have another problem of our hands. This is a person asks the person B who is blind drawing sketches. Although this is not something that is impossible, but it is difficult if you do not know how to instruct. Even if a person-to communicate now, he should know the steps in proper order and very precise, otherwise you will get person B to draw something, but not what you would expect. Person-to know every minute detail precisely because person B is blind, he will just follow what the person's instructions. If a person-it asks for drawing lines 1.23 cm, with a certain point with a certain degree, a person B, without even any question just to without even thinking about the outcome. If a person knows-how to teach accurately and exactly as required, and then person B will attract what you want in the way he wants.

If we go back to computer programs, and use the same approach as in the example above, everything becomes very simple and easy. Replace with yourself and the person B with a computer. Now the first thing you need is an interpreter and others should know precisely what you want and the steps you need so you can get the job done.

to read and write binary code or program is unfortunately very difficult for people. So we have to use some kind of program that can translate something to make the English language to binary and vice versa. These programs can translate our instructions in English in binary code are surprisingly called as an interpreter.

Do you interpret really understand English?

This will be a question that could be running in your mind sada.Odgovor that the number of

Yes, because we use the English word programming languages​​, and not the computer still is not up to that level in order to understand what they were talking in any language. This type of language is known as a high level language. Using the concept of language, I am not referring to various languages ​​such as English, French, etc., but I'm referring to high-level languages ​​used for writing programs, which are then interpreted and converted into binary code, in order to make computers understand. High languages ​​are covered in more detail in subsequent sections.

Let us now look at the binary language in detail, but before we actually need to know something important. They are bits and bytes.

I will continue with the bits and bytes in my next article.