Tuesday, February 25, 2020

Object oriented development Essay Example | Topics and Well Written Essays - 1250 words

Object oriented development - Essay Example It is an easier way to keep track of program flow and much organized than the traditional "spaghetti codes" produced by unstructured programming methods. In 70's, a new programming technique began to gain popularity as a "top-down" approach to program design. This is a technique where a program designer maps out large-scale structure of a program and breaks them into smaller operations. These smaller operations will be tested or debug separately and connect them together into the entire program. Structured programming facilitates easy understanding of smaller pieces of code without having to understand the whole program at once. By the end of the 20th century, mainstream programmers realized the significance and value of structured approach began to apply the concept in high-level programming languages. In the middle of the 1980's, another concept in program development made its way to become the dominant programming methodology. Mainly influenced by C++ and the popularity of GUI (Graphical User Interface), Object-oriented programming became the most sought after programming method to date. The objective behind object-oriented programming is to view computer programs as a collection of individual units or objects that is capable of receiving messages, processing data, and sending messages to each other. This is different from the belief and practice that a program is just a compilation of functions and procedures or a list of commands for a computer to follow. Object-oriented programming is broadly accepted in large-scale software development. It is adaptable, easy to learn, simpler to develop and maintain, and easier to manage. The fundamental concepts of OOP (short for object oriented programming) are class, object, encapsulation, inheritance, abstraction, and polymorphism. Class is a unit of data and function for a particular thing. For instance, a "class of students" might be a set, which include different type of students (male, female, black, white etc.). An Object is an occurrence of a class, a run-time demonstration of a specific pattern of a class. For instance, the gender "male" and "female" as a subclass and "Alfred" the student as an object in the class of students. Encapsulation is a type of privacy to ensure that an object can be change only through established channels within a class. It simply means packaging the data and related functions into one unified unit, a class. Inheritance- is a mechanism for creating subclasses; it provides a way to define a subclass or an extension of a universal class. For instance, as students, class is a subclass of year level class and gender of student in a class is a subclass of the class students. An Abstraction is the ability of a program to disregard the details of an object's class or subclass and si mplify it into a more suitable general level. For instance, "Alfred" the students may be abstracted to a more generic level as year level super class. Polymorphism is a varying behaviour depending on the class in which the behaviour is call upon to act. This is to say that two or more classes can answer independently and in an entirely different way to an identical message. THE EVOLUTION OF OBJECT-ORIENTED PHP Not too many people know that PHP, the popular and powerful web base scripting language, coined in the summer

Saturday, February 8, 2020

Kant - Three Propositions from Groundwork of the Metaphysics of Morals Essay

Kant - Three Propositions from Groundwork of the Metaphysics of Morals - Essay Example In his second proposition, Kant iterates that the moral worth of an action derives from its maxim and not from its consequences. In further deliverance of this notion, Kant determines that a prescribed action done from duty is determined in its moral worth only by virtue of the principle, or maxim, in â€Å"accordance with which it is decided upon†. This implies that the moral worth of the will to do an action lies NOT in its motive or the desired effect from that action, but in the actual principle of the will. In Kant’s view, a will is genuine and morally sound if it is derived from duty alone instead of any ancillary motive where duty simply plays a complementary role instead of being the motivating factor in its entirety. Thus, it must necessarily follow that the person taking the action has recognized an a priori goodwill principle that they seek to fulfill by taking that action; thus, the action has been brought about from duty instead of being committed for a pur pose beyond that which imposed by the goodwill, rendering it of sound moral worth. Kant recognizes a third proposition in a similar way which at first seems like in stark contrast to his second proposition but in essence, follows through with the same elements of rationality by inciting a â€Å"respect for law† which imposes a duty to respect the moral law.... Such morality requires a conception of reason, which in normal daily lives goes well beyond our basic desires. In these arguments, Kant sets out to establish the foundational principle of a set of morals. What he is trying to show is that this foundational moral principle draws from a rational will in all of us, and it is this rational will that makes us possess the autonomy to act morally. This autonomy is essentially derived from duty and has the capability of denouncing all inclinations (second proposition) in order to pursue actions that are done strictly in respect of moral law (third proposition). As he rounds up his arguments in this work, he puts it clearly that there are universal moral laws, and any action that is agreeable should not only obey a moral law, but should be done to ensure morality is upheld (Kant 4:400). Any action that is not done for the sake of a moral law even if it conforms to a moral law is not logically necessary. Thus, it is prudent to observe and link the second and third propositions in pursuit of the universal law of morals. Kant seems to maintain that the second proposition is directly linked with the third proposition. However, the notion of respect seems to suggest otherwise as it exists in the third and not in the second proposition. What, then, is respect? Respect is a notion unhinged to the personal faculty of desire and is therefore not an inclination. In plain English, thus, respect is an attitude which impels goodwill actions. An action done by reason of inclination, as opposed to one by reason of respect, would seek a desired effect, and is NOT an action from duty, but an action for a purpose. This brings us to a consideration of the