Wednesday, January 29, 2020

Introduction to programming Essay Example for Free

Introduction to programming Essay As this course is titled â€Å"Introduction to programming†, therefore it is most essential and appropriate to understand what programming really means. Let us first see a widely known definition of programming. Definition: A program is a precise sequence of steps to solve a particular problem.† It means that when we say that we have a program, it actually mean that we know about a complete set activities to be performed in a particular order. The purpose of these activities is to solve a given problem. Alan Perlis, a professor at Yale University, says: See more: how to write an introduction paragraph for an essay It goes against the grain of modern education to teach children to program. What fun is there in making plans, acquiring discipline in organizing thoughts, devoting attention to detail and learning to be self-critical? It is a sarcastic statement about modern education, and it means that the modern education is not developing critical skills like planning, organizing and paying attention to detail. Practically, in our day to day lives we are constantly planning, organizing and paying attention to fine details (if we want our plans to succeed). And it is also fun to do these activities. For example, for a picnic trip we plan where to go, what to wear, what to take for lunch, organize travel details and have a good time while doing so. When we talk about computer programming then as Mr. Steve Summit puts it â€Å"At its most basic level, programming a computer simply means telling it what to do, and this vapid-sounding definition is not even a joke. There are no other truly fundamental aspects of computer programming; everything else we talk about will simply be the details of a particular, usually artificial, mechanism for telling a computer what to do. Sometimes these mechanisms are chosen because they have been found to be convenient for programmers (people) to use; other times they have been chosen because theyre easy for the computer to understand. The first hard thing about programming is to learn, become comfortable with, and accept these artificial mechanisms, whether they make sense to you or not. â€Å" Why Programming is important The question most of the people ask is why should we learn to program when there are so many application software and code generators available to do the task for us. Well the answer is as give by the Matthias Felleisen in the book ‘How to design programs’ â€Å"The answer consists of two parts. First, it is indeed true that traditional forms of programming are useful for just a few people. But, programming as we the authors understand it is useful for everyone: the administrative secretary who uses spreadsheets as well as the high-tech programmer. In other words, we have a broader notion of programming in mind than the traditional one. We explain our notion in a moment. Second, we teach our idea of programming with a technology that is based on the principle of minimal intrusion. Hence, our notion of programming teaches problem-analysis and problem-solving skills without imposing the overhead of traditional programming notations and tools.† Hence learning to program is important because it develops analytical and problem solving abilities. It is a creative activity and provides us a mean to express abstract ideas. Thus programming is fun and is much more than a vocational skill. By designing programs, we learn many skills that are important for all professions. These skills can be summarized as: Critical reading Analytical thinking Creative synthesis What skills are needed Programming is an important activity as people life and living depends on the programs one make. Hence while programming one should Paying attention to detail Think about the reusability. Think about user interface Understand the fact the computers are stupid Comment the code liberally Paying attention to detail In programming, the details matter. This is a very important skill. A good programmer always analyzes the problem statement very carefully and in detail. You should pay attention to all the aspects of the problem. You cant be vague. You cant describe your program 3/4th of the way, then say, You know what I mean?, and have the compiler figure out the rest. Furthermore you should pay attention to the calculations involved in the program, its flow, and most importantly, the logic of the program. Sometimes, a grammatically correct sentence does not make any sense. For example, here is a verse from poem Through the Looking Glass written by Lewis Carol: â€Å"Twas brillig, and the slithy toves Did gyre and gimble in the wabe â€Å" The grammar is correct but there is no meaning. Similarly, the sentence, Mr. ABC sleeps thirty hours every day, is grammatically correct but it is illogical. So it may happen that a program is grammatically correct. It compiles and runs but produces incorrect or absurd results and does not solve the problem. It is very important to pay attention to the logic of the program. Think about the reusability When ever you are writing a program, always keep in mind that it could be reused at some other time. Also, try to write in a way that it can be used to solve some other related problem. A classic example of this is: Suppose we have to calculate the area of a given circle. We know the area of a circle is (Pi * r2). Now we have written a program which calculates the area of a circle with given radius. At some later time we are given a problem to find out the area of a ring. The area of the ring can be calculated by subtracting the area of outer circle from the area of the inner circle. Hence we can use the program that calculates the area of a circle to calculate the area of the ring. Think about Good user interface As programmers, we assume that computer users know a lot of things, this is a big mistake. So never assume that the user of your program is computer literate. Always provide an easy to understand and easy to use interface that is self explanatory. Understand the fact that computers are stupid Computers are incredibly stupid. They do exactly what you tell them to do: no more, no less unlike human beings. Computers cant think by themselves. In this sense, they differ from human beings. For example, if someone asks you, â€Å"What is the time?†, â€Å"Time please?† or just, â€Å"Time?† you understand anyway that he is asking the time but computer is different. Instructions to the computer should be explicitly stated. Computer will tell you the time only if you ask it in the way you have programmed it. When youre programming, it helps to be able to think as stupidly as the computer does, so that you are in the right frame of mind for specifying everything in minute detail, and not assuming that the right thing will happen by itself. Comment the code liberally Always comment the code liberally. The comment statements do not affect the performance of the program as these are ignored by the compiler and do not take any memory in the computer. Comments are used to explain the functioning of the programs. It helps the other programmers as well as the creator of the program to understand the code. Program design recipe In order to design a program effectively and properly we must have a recipe to follow. In the book name ‘How to design programs’ by Matthias Felleisen.and the co-worker, the idea of design recipe has been stated very elegenlty as â€Å"Learning to design programs is like learning to play soccer. A player must learn to trap a ball, to dribble with a ball, to pass, and to shoot a ball. Once the player knows those basic skills, the next goals are to learn to play a position, to play certain strategies, to choose among feasible strategies, and, on occasion, to create variations of a strategy because none fits. â€Å"

Tuesday, January 21, 2020

Imagery Used in Keats Poems Essay example -- John Keats Ode to a Grec

Imagery Used in Keats' Poems Strong imagery is the basis of structure in many poems. Literal and metaphorical imagery words aid the reader with interpreting the main ideal of the poem. Ode to a Grecian Urn, Ode to a Nightingale and On First Looking into Chapman’s Homer are three of John Keats’ poems which contain this descriptive imagery to give structure and meaning. Keats makes the decorative language as the medium for the passion that he holds for his subject. Ode to a Grecian Urn is a poem in which Keats makes imagery explain the physical aspects of an urn as well as the message behind its appearance. When explaining the physical attributes of the urn Keats describes its beauty by comparing the urn to places such asâ€Å"†¦Temp† and â€Å"†¦the dales of Arcady† in line seven. Imagery such as lines nineteen and twenty state â€Å"She cannot fade, through thou hast not thy bliss, / For ever wilt though love, and she be fair†. These lines colorfully relay the message that the urn is infinite and the image of life that is presented on it will never commence. This urn is presented...

Sunday, January 12, 2020

Autobiographical Essay on “the Life as a Small Business Thinker”

I was born in 1978, and started my life-education when I was at 5 years of age in a USM kindergarten, Penang. I grew up in Penang, had an ordinary secondary education in two schools (SMKA Almashoor and St. George’s Girls School), which I find two different cultures in both schools. While in an Islamic school, we were thought all the essential Islamic values which (I think) made the most of who I am today. Meanwhile being in St’ George’s Girls School, a multi-cultural school, has developed me into a self-confident woman and motivated in life and what I do.Most of this essay is a series of vignettes from my professional life, in chronological order. This is the story of my life, with an elaboration of what I think is the point of it all; my personal assessment of what I did and why I became a marketer. At the age of 34, I was beginning to re-think all the decisions that I’ve made through my life and all the â€Å"what ifs† question that was not answer able up till now. For weeks, I have been contemplating and have faint urges to pursue more in life, and get hold of one most important thing in my life: graduate with a MBA in my hand!When I enrolled to UiTM, the decision to major in broadcasting was something I did not take lightly. I was sure of the decision I made without knowing the after-crisis that I might face later on. I spent 4 years of my life majoring in Broadcasting, and was enjoying college life as much as I could. I was always fascinated by the world of broadcasting and all its stories. It’s impossible for me to pin-point when I first became interested with broadcasting as it has been there for as long I can remember.I was lucky enough to land a 6 months practical at a production house that had given me exciting insights in the world of broadcasting. I remember going back to class from the 6 exciting months feeling enthusiastic about life, work and all the people that I have met in the industry. The months of ha rdworking, fast-paced industry were what I longed for. At this point, my post-graduation plan was to work in a tv station (or small market station at least). I was expecting a low salary and ungodly hours, but I was looking at the experience as an extension of my education.I remember when I completed my paper during my finals, my head was racing with so-called future plans, and I could remember that faint twinge of excitement as I flip through the newspapers looking for jobs in tv station. I also remember the journey to several tv stations that I went for interviews that turned me down as I had no relevant experience for the job. I figured quickly, the jobs available to me were limited, because I was lack of experience, and I was young. After weeks of searching, and drilling interview sessions, I finally land a marketing job at Seniko Sdn Bhd. an IT company in Cheras, Kuala Lumpur. I took the job instantly, as I thought, I must have done something right to market myself that the Man ager offered me the post immediately. My first job in a way has changed my outlook and way of life. It was really the key that made me start to grow as a person, and expanded my responsibilities extensively. The first job was always the hardest to cope with, until I realized many things in life is implied through my first marketing job.

Saturday, January 4, 2020

Nyasasaurus - Facts and Figures

Name: Nyasasaurus (Greek for Nyasa lizard); pronounced knee-AH-sah-SORE-us Habitat: Plains of southern Africa Historical Period: Early Triassic (243 million years ago) Size and Weight: About 10 feet long and 100 pounds Diet: Unknown; probably omnivorous Distinguishing Characteristics: Long, lithe build; exceptionally long tail About Nyasasaurus Announced to the world in December of 2012, Nyasasaurus is an exceptional find: a dinosaur that lived in the southern continent of Pangaea during the early Triassic period, about 243 million years ago. Why is this such stunning news? Well, scientists previously believed that the earliest true dinosaurs (such as Eoraptor and Herrerasaurus) arose in middle Triassic South America, at a remove of 10 million years and 1,000 or so miles. Theres still a lot we dont know about Nyasasaurus, but what we do know points to an unmistakably dinosaurian lineage. This reptile measured about 10 feet from head to tail, which may seem enormous by Triassic standards, except for the fact that fully five feet of that length was taken up by its unusually long tail. Like other early dinosaurs, Nyasasaurus clearly evolved from a recent archosaur ancestor, though it may have represented a dead end in dinosaur evolution (the true dinosaurs we all know and love still being descended from the likes of Eoraptor). One thing about Nyasasaurus that remains a mystery is this dinosaurs diet. The earliest dinosaurs preceded the historic split between saurischian and ornithischian varieties (saurischians were either carnivorous or herbivorous, and all ornithischians, as far as we know, were plant-eaters). It seems most likely that Nyasasaurus was omnivorous, and its descendants (if any) evolved in more specialized directions. It may yet turn out that Nyasasaurus is technically classified as an archosaur rather than a true dinosaur. This would not be an unusual development, since theres never a firm line that separates one type of animal from another in evolutionary terms (for example, which genus marks the transition from the most advanced lobe-finned fish to the earliest tetrapods, or the small, feathered, fluttery dinosaurs and the first true birds?)