When we write a computer program
we are communicating with an alien intelligence. A computer is a machine built
of metal, silicon, and other composite materials. It has no knowledge and no
common sense. In a way, a computer is no more than a tin can. If one-hundred
years ago someone had found you attempting to communicate and give orders to a
tin can, you would have probably been committed to a mental institution.
Our main difficulty is that the
tin can never knows what you mean. A human intelligence has accumulated
considerable knowledge of the world and of society at large. The set of
instructions for a human to get me a can of pop out of a vending machine can be
rather simple: “Don, here is five thousand rupiahs, would you please get me a Sprite?”
Don, who has knowledge of the world, understands that he must walk out of the
room, open the necessary doors and walk up and down stairs, reach the vending
machine, wait in line if someone is using it, then place the coins in the
adequate slot, punch the Sprite button, retrieve the can of pop, and bring it
back to me, again opening doors and walking up and down stairs as necessary. Don
has knowledge of doors, of stairs, of money, of waiting in line, of vending
machines, and of a thousand other worldly things and social conventions that
are necessary to perform this simple chore.
The machine, on the other hand,
has no previous knowledge, does not understand social conventions, and has no
experience with doors, stairs, people standing in line, or vending machine
operation. If we forget to tell the robot to open the door it will crash
through and leave a hole shaped like its outline. If we forget to tell it to
wait in line if someone else is using the vending machine, then the robot may
just walk over the current customer in its effort to put the coins in the slot.
The tin can has no experience, no social manners, and no common sense. Giving
instructions to a machine is different and much more complicated than giving
instructions to an intelligent being.
This is what computer programming
is about. It is sometimes considered difficult to learn, not so much because it
is complicated, but because it is something to which we are not accustomed.
Learning programming requires learning the grammar and syntax of a programming
language, but, perhaps more importantly, it requires learning to communicate
with and learning issue commands to a tin can; a task indeed!
No comments:
Post a Comment