Summary
o What is programming
o Why programming is important
o What skills have been needed
o Develop a simple recipe for essay programs
o Points to remember
What is programming
As this march is patrician “Introduction to programming”, thus it is most necessary as great as suitable to assimilate what programming unequivocally means. Let us primary see a during large great known clarification of programming.
Definition: “A module is a accurate method of stairs to compromise a sold problem.”
It equates to which when you contend which you have a program, it essentially equates to which you know about a finish set activities to be achieved in a sold order. The role of these activities is to compromise a since problem.
Alan Perlis, a highbrow during Yale University, says:
“It goes opposite a pellet of complicated preparation to clarity young kids to program. What fun is there in creation plans, appropriation fortify in organizing thoughts, devoting courtesy to item as great as guidance to be self-critical? “
It is a spiteful have a difference about complicated education, as great as it equates to which a complicated preparation is not structure vicious skills similar to planning, organizing as great as profitable courtesy to detail. Practically, in a day to day lives you have been all a time planning, organizing as great as profitable courtesy to excellent sum (if you wish a skeleton to succeed). And it is additionally fun to do these activities. For example, for a cruise outing you devise where to go, what to wear, what to take for lunch, classify transport sum as great as have a great time whilst you do so.
When you speak about resource programming afterwards as Mr. Steve Summit puts it
“At a most simple level, programming a resource simply equates to revelation it what to do, as great as this vapid-sounding clarification is not even a joke. There have been no alternative in truth elemental aspects of resource programming; all else you speak about will simply be a sum of a particular, customarily artificial, resource for revelation a resource what to do. Sometimes these mechanisms have been selected since they have been found to be accessible for programmers (people) to use; alternative times they have been selected since they’re easy for a resource to understand. The primary tough thing about programming is to learn, turn gentle with, as great as accept these synthetic mechanisms, either they have “sense” to you or not. “
© Copyright Virtual University of Pakistan
3
CS201 – Introduction to Programming
Why Programming is important
The subject most of a people ask is since should you clarity to module when there have been so most focus module as great as formula generators accessible to do a charge for us. Well a answer is as give by a Matthias Felleisen in a book ‘How to pattern programs’
“The answer consists of dual parts. First, it is in truth loyal which normal forms of programming have been utilitarian for usually a couple of people. But, programming as you a authors assimilate it is utilitarian for everyone: a executive cabinet member who uses spreadsheets as great as a high-tech programmer. In alternative words, you have a broader thought of programming in thoughts than a normal one. We insist a thought in a moment. Second, you clarity a thought of programming with a record which is formed upon a element of minimal intrusion. Hence, a thought of programming teaches problem-analysis as great as problem-solving skills though commanding a beyond of normal programming notations as great as tools.”
Hence guidance to module is critical since it develops methodical as great as complaint elucidate abilities. It is a beautiful wake up as great as provides us a meant to demonstrate epitome ideas. Thus programming is fun as great as is most some-more than a vocational skill. By conceptualizing programs, you clarity most skills which have been critical for all professions. These skills can be epitomised as:
o Critical reading
o Analytical thinking
o Creative synthesis
What skills have been needed
Programming is an critical wake up as people hold up as great as vital depends upon a programs a single make. Hence whilst programming a single should
o Paying courtesy to detail
o Think about a reusability.
o Think about user interface
o Understand a actuality a computers have been stupid
o Comment a formula liberally
Paying courtesy to detail
In programming, a sum matter. This is a really critical skill. A great programmer regularly analyzes a complaint have a difference really delicately as great as in detail. You should compensate courtesy to all a aspects of a problem. You can’t be vague. You can’t report your module 3/4th of a way, afterwards say, “You know what you mean?”, as great as have a compiler figure out a rest.
Furthermore you should compensate courtesy to a calculations concerned in a program, a flow, as great as most importantly, a proof of a program. Sometimes, a grammatically scold judgment does not have any sense. For example, here is a hymn from poem “Through a Looking Glass” created by Lewis Carol:
© Copyright Virtual University of Pakistan
4
CS201 – Introduction to Programming
“Twas brillig, as great as a slithy toves
Did movement as great as gimble in a wabe “
The abbreviation is scold though there is no meaning. Similarly, a sentence, “Mr. ABC sleeps thirty hours each day”, is grammatically scold though it is illogical.
So it might occur which a module is grammatically correct. It compiles as great as runs though produces improper or ludicrous formula as great as does not compromise a problem. It is really critical to compensate courtesy to a proof of a program.
Think about a reusability
When ever you have been essay a program, regularly keep in thoughts which it could be reused during a little alternative time. Also, try to write in a approach which it can be used to compromise a little alternative associated problem. A classical e.g. of this is:
Suppose you have to work out a area of a since circle. We know a area of a round is (Pi * r2). Now you have created a module which calculates a area of a round with since radius. At a little after time you have been since a complaint to find out a area of a ring. The area of a ring can be distributed by subtracting a area of outdoor round from a area of a middle circle. Hence you can operate a module which calculates a area of a round to work out a area of a ring.
Think about Good user interface
As programmers, you pretence which resource users know a lot of things, this is a large mistake. So never pretence which a user of your module is resource literate. Always yield an easy to assimilate as great as easy to operate interface which is self explanatory.
© Copyright Virtual University of Pakistan
5
CS201 – Introduction to Programming
Understand a actuality which computers have been stupid
Computers have been incredibly stupid. They do usually what you discuss it them to do: no more, no less– distinct tellurian beings. Computers can’t consider by themselves. In this sense, they talk about from tellurian beings. For example, if someone asks you, “What is a time?”, “Time please?” or just, “Time?” you assimilate any approach which he is asking a time though resource is different. Instructions to a resource should be categorically stated. Computer will discuss it you a time usually if you ask it in a approach you have automatic it.
When you’re programming, it helps to be means to “think” as stupidly as a resource does, so which you have been in a right support of thoughts for naming all in notation detail, as great as not presumption which a right thing will occur by itself.
Comment a formula liberally
Always criticism a formula liberally. The criticism statements do not begin a opening of a module as these have been abandoned by a compiler as great as do not take any mental recall in a computer. Comments have been used to insist a functioning of a programs. It helps a alternative programmers as great as a bard of a module to assimilate a code.
Program pattern recipe
In sequence to pattern a module effectively as great as scrupulously you contingency have a recipe to follow. In a book name ‘How to pattern programs’ by Matthias Felleisen.and a co-worker, a thought of pattern recipe has been settled really elegenlty as
“Learning to pattern programs is similar to guidance to fool around soccer. A player contingency clarity to trap a ball, to leap with a ball, to pass, as great as to fire a ball. Once a player knows those simple skills, a subsequent goals have been to clarity to fool around a position, to fool around sure strategies, to select between possibly strategies, and, upon occasion, to emanate variations of a plan since nothing fits. “
The bard afterwards go upon to contend that:
“A programmer is additionally really most similar to an architect, a composers, or a writer. They have been beautiful people who begin with ideas in their heads as great as vacant pieces of paper. They detect of an idea, form a mental outline, as great as labour it upon paper until their papers simulate their mental picture as most as possible. As they move their ideas to paper, they occupy simple drawing, writing, as great as personification song to demonstrate sure impression elements of a building, to report a person’s character, or to delineate portions of a melody. They can operate their traffic since they have honed their simple skills for a prolonged time as great as can operate them upon an intrinsic level.
Programmers additionally form outlines, interpret them in to primary designs, as great as iteratively labour them until they in truth compare a primary idea. Indeed, a most appropriate programmers revise as great as rewrite their programs most times until they encounter sure cultured standards. And usually similar to soccer players, architects, composers, or writers, programmers contingency operate a simple skills of their traffic for a prolonged time prior to they can be in truth creative.
Design recipes have been a homogeneous of soccer round doing techniques, essay techniques, arrangements, as great as sketch skills. “
My Name Is Amjad Abbas.I live in Pakistan .I am consultant in resource Programming.
contact us:
bhatti_lucky67@yahoo.com
Any denunciation complaint greatfully send mail.
Article from articlesbase.com



