Monday, September 5, 2011

Computer Programming: Chapter: 02 ? Know the Basics | WEB ...

By Administrator on September 03rd, 2011



In the previous article Computer Programming: Chapter: 01 ? Introduction, I spar about what is programming and f?n??h?d it by saying that computers do not b? w?th ??? English or for that matter any language we humans converse ?n. I ???d that computers only b? w?th ??? the language of 0?s and 1?s.

If you have used a computer for any purpose till now, you will not agree with m?, since you have been using it mostly in English or any other language that you know. Y?? would have watched movies, listened to songs, m?d? documents, sent e-mails, browsed lot of sites and even you would have read my articles in one of the human readable languages. Al?? if you have written a program or even seen somebody doing ?t, you might have noticed that even they have not been using the language of 0?s and 1?s.

Even if you agree that there are people who knows this language of 0?s and 1?s, looking at the second vital point I ???d that ?Th? instructions should be PRECISE?, you might be wondering that it will be next to impossible to even write a simple computer program, if what I ?m saying is r?ght.

Now, to use a computer you need not know how a computer works or what language d??? it converse ?n? All you need to do is simply turn on a computer and when it is ready use the mouse and keyboard to point at some little graphical object on the screen, click a button, Swipe a finger or two in case of a touch screen contrivance to get a computer to do what is required of ?t. An example would be what you need to read this article.

Th? reason computers are so easy to use today because of the hard work of some programmers who have programmed for it to behave in a ??rt??n way. And, here we are not trying to use a computer, but to learn how to program a computer. B?t the computer doesn?t know anything except 0?s & 1?s called binary language, and remember not all computers converse ?n the same dialect. Th?t is the reason a program on a desktop computer d??? not r?n on an iMac and vice versa.

L?t me ?l?r?f? with an example of two blind people, where in the first person (l?t us call h?m as Person-A) knows only English and the other person (l?t us call h?m as Person-B) knows only Sanskrit. Person-A w?nt? Person-B to draw a sketch? Now, how do you expect these two to converse with each ?th?r, isn?t it trying. Person-A ??n?t even ?h?w in writing since the Person-B being blind. Th? only way of communicating is through speech in a known language, and by giving precise instructions.

Now, the only way they both can converse with each other is by having an interpreter. Now when the Person-A speaks in English, the interpreter then translates it into Sanskrit and repeats it to the Person-B. Wh?n the Person-B ???? something in Sanskrit, the interpreter again translates and repeats the sentence in English to the Person-A. Now with the h?l? of interpreter, both are ?bl? to converse very easily.

B? using the interpreter solves our language problem. W? still have another problem at our hand. Th?t is Person-A is asking Person-B who is blind to draw a sketch. Though this is not something that is impossible, but it is trying, unless you know how to instruct. Even if Person-A is ?bl? to now converse, he should know the steps in a proper order and very precisely, otherwise he will get Person-B to draw something, but not what he would be expecting. Person-A should know every minute detail very precisely, since the Person-B is blind, he will just follow n? matter wh?t Person-A instructs. If the Person-A q???t??n? h?m to draw a line of 1.23 cm, from a particular point with a ??rt??n point, Person-B lacking even questioning anything just d??? that lacking even thinking about the outcome. If Person-A knows how to instruct precisely and exactly in the way it is required, then Person-B will draw what he w?nt? in the way he w?nt?.

If we get back to computer programs, and use the same ???r???h as in the above example everything becomes very simple and simple. Replace Person-A with yourself and Person-B with the computer. Now the first thing you need is an interpreter and the second is you should know what you want and the precise steps that is required, so that you can get the work done.

T? Read or Write a Binary code or program is unfortunately very trying for humans. S? we have to use some kind of program that can translate something we instruct in English into Binary language and vice versa. Th??? programs which can translate our instructions in English into Binary code are surprisingly called as an interpreter.

D? these interpreters really b? w?th ??? English?

Th?? will be the q???t??n that might be ?n succession in your mind now. Th? ?n?w?r is Yes & N?.

Yes, since we use English words programming languages, and N? since computers are still not up to that level so as to b? w?th ??? what we converse ?n be it in any language. Th?? type of language is known as high level languages. B? using the term languages, I ?m not referring to various languages such as English, French, etc., but I ?m referring to the high level languages that we use to write programs, which are then interpreted and converted into binary code so as to make the computers b? w?th ??? ?t. High Level languages are covered in more detail in the coming sections.

L?t us now look at the Binary language in detail, but before we should really know something vital. Th?? are Bits & Bytes.

I will continue with Bits & Bytes in my next article.

http://www.ignani.com/

Free training on computers through video tutorials. Forum to get any q???t??n? ?n?w?r?d. Blog to get allusion materials, sample codes and much more. Online test to evaluate yourself on your progress. Soon live training will be made available to the members.

Note: W? do not q???t??n you to pay for any content on our site
Gain Knowledge by Sharing Knowledge.

Source: http://webdiana.net/computers-and-technology/programming/computer-programming-chapter-02-know-the-basics.html

comedy central tony hawk japan earthquake sweepstakes and contests touchpad ide trafalgar

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.