Free Essay

Ethics

In:

Submitted By gxmehta
Words 1791
Pages 8
1

IS 247, Spring 2011, Coding Guidelines &
Pair Programming

• Suggestion: start homeworks early and send e-mail if you get stuck.
Cell phones & laptops off.
Reminder: if printing the notes, consider printing 4-up (4 pages per side) or
2-up or 6-up or some such.
Generated 2015-01-26, 08:25:40

2

Java Operators
++
-~
!
*
+
/
%
>
>>>
=
>
<
>=
>> 1; b = b >>> 1;
} // while something’s nonzero return count;
} // hammingDistance() public static void main(String[] args) {
System.out.println(
hammingDistance(Integer.parseInt(args[0]),
Integer.parseInt(args[1])));
} // main()
} // class HammingDistance

4

A Refinement
That version of Hamming Distance was fine, but can we take advantage of the fact the exclusive-or can be thought of as a not equals function?
So if we take the exclusive-or of two integers, the result has a one in every bit position in which the numbers differ, and zeroes everywhere else. public static int hammingDistance(int a, int b)
{
int count = 0;
// bits has a one wherever a and b differ int bits = a ^ b; while (bits != 0) { if ((bits & 1) == 1) // is the low bit one?
++count;
bits = bits >>> 1;
// done w/this bit
} // while something’s nonzero return count;
} // hammingDistance()
This simplified the loop condition and took one shift out of the loop body.

5

Hamming Distance—Final Version
It turns out we can simplify things a bit more through the use of the Java library. public static int hammingDistance(int a, int b)
{
// bits has a one wherever a and b differ int bits = a ^ b; return Integer.bitCount(bits);
} // hammingDistance()

6

Example: Separating Color Fields
Often color is represented using separate red, green, and blue (RGB) values.
For brevity, all three values are stored in three bytes of a single computer word, which from our point of view is an int. If each color value is a byte, then it’s 8 bits, which means there are 28 = 256 different values for each color component (and 224 = 16M different colors overall).
Each byte takes on an integer value in the range 0–255 decimal, or 0x00 – 0xff hexadecimal.
We’ll need a mask.

7

public class RGB { public static int redComponent(int color) { int value = color >>> 16; return value & 0xff;
} // redComponent() public static int greenComponent(int color) { int value = color >>> 8; return value & 0xff;
} // greenComponent() public static int blueComponent(int color) { return color & 0xff;
} // blueComponent() public static void main(String[] args) { int color = 0xfffdb975; // note top ff invalid
System.out.println(redComponent(color));
System.out.println(greenComponent(color));
System.out.println(blueComponent(color));
} // main()
} // class RGB

8

Java Coding Guidelines
These coding guidelines are pretty typical of standards one would encounter in industry—but minimal.
They are guidelines: for any particular guideline there may be occasions in which they can be violated.

9

Design Guidelines

• Think before you code.
Just because a program works doesn’t mean it’s good.
Design.
• Readable Structure
– Never use the continue statement.
– Use break only to terminate cases of switch statements.
– The book says a method should have just one return.
That depends—often multiple returns will simplify logic. • Modifiers
– No variables should be public unless they’re also final. – Write-once variables (“constants”) should be marked final. 10

• Use named constants rather than literals wherever possible. – 3.1415926, "lion" are literals.
– pi, feline are identifiers which could be named constants • A method should do exactly one thing.
If multiple things need to be done, use multiple methods.

11

Variable Scope
In general we don’t want a variable accessible from a wider range of places than necessary.
• This is why instance variables are almost never public.
• This is also why for loop control variables are usually local to the loop.
Consider instance variables vs. variables local to a method.
Local variables can only be accessed from within the method. What if an instance variable is only used within one method? • It should be declared within that method, and thus
• accessible only from within that method.
This is something a lot of people lose points on.
If it can be local, make it local.

12

Why Keep Local Things Local?
• Readability:
– a variable’s use is near its declaration
– the reader doesn’t have to wonder where else it’s used, for what, and how.
So limiting the scope of variables makes code more readable, maintainable, and reliable.
• Efficiency:
– If a variable’s not local, the compiler can’t tell whether its value will be needed again.
So the compiler can’t free up no-longer-needed memory.
– Variables local to a method are allocated when the method is called (at the earliest) and freed up when the method returns (at the latest).
– Instance variables are created when an object is created, and freed up if the object is collected.
– Many compiler optimizations are more practical with local variables than with instance variables, e.g., a local variable is much more likely to be kept in a register. So limiting the scope of variables saves memory and processing time.

13

Style Guidelines

• Identifier names should indicate their use.
• Identifiers should be easy to read: dayOfYear is better than doy—and much better than x.
• Every class name:
– begins with a capital letter;
– is written in “CamelCase,” and
– is a noun.
• Method names and variable names start with lower case letters.
– And are written in “camelCase.”
• Indent 2–4 spaces; a full tab stop (8 spaces) is way too much. • Keep code to less than 80 columns—otherwise, it has to be printed in landscape mode, which wastes paper.
– Don’t print code in landscape mode:
∗ In addition to wasting paper, landscape encourages programmers to use wide, often less readable lines. – When printed, lines should not wrap.

14

Whitespace

• Use whitespace to enhance readability.
• A comma is generally followed by a space.
• Binary operators are usually separated from their operands by single spaces.
• No spaces immediately before a closing parenthesis or immediately after an opening parenthesis.
• No space between a method name and an opening parenthesis. • No spaces before a semicolon, comma, or square bracket.
• In array declarations, place the square brackets with the type, not the variable.

15

Messages, Prompts, Output

• Be informative, but succinct.
• Prompts should be clear and specific.
• Indicate default values, if any, in prompts.
• Output must be readable.
• Output must be labeled.

16

Internal Documentation

• Assume the reader knows Java.
• Assume the reader knows little to nothing about what the program’s supposed to do or how.
• Document blocks of code that might not seem obvious to a reader.
• Comments must be accurate—revising code usually leads to comment revisions.
• Be concise but thorough.
• Every file should begin with a header block that identifies the class(es) in the file, their purposes, the author, any assumptions made by the author.
• Use in-line comments rather than /* ...

*/ blocks.

• Insert comments as the code is written, not after.
• Using javadoc-style comments as appropriate is good, but not required for this course.

17

Pair Programming
Pair programming is often described as [Williams 2000]: a practice in which two programmers work side-byside at one computer, continuously collaborating on the same design, algorithm, code, or test. This method has been demonstrated to improve productivity and the quality of software products.

18

Pair Programming Rules

• Share. “In pair programming, two programmers are assigned to jointly produce one artifact (design, algorithm, code, among others). ... One person is typing or writing [driving], the other is continually reviewing the work [navigating]. ... Both partners own everything.”
Not only is this an effective learning technique, it is also more productive than splitting a task in two, working on each half separately, and then combining the two.
• Play fair. It is important to take turns typing or writing [driving], so that the other person gets a chance to review [navigate].
• Clean up. Defects belong to the pair. Having two sets of eye balls is much better than one.
• Hold hands and stay together. All programming should be done together; do not create things done alone. The literature of pair programming shows that most defects are traceable to things done singly.
It also inhibits learning.

19

• Say you’re sorry. “Ego-less programming ... is essential for effective pair programming.” Do not insist on having things your way or else. Do not get defensive about criticism. Work things out as a pair.
• Pairs should turn in only 1 copy of an assignment with both names on the assignment.
• Pairs, once formed, must be stable; your only other option is to revert to working alone for the semester.
Exception; to get an exception, you need to present your case to your instructor prior to beginning an assignment.
• Pairs may split for an assignment and then return to pairing.
• Pairs are required to work together; any form of splitting up the work is a violation of pair programming.

20

Violations of Pair Programming
• Taking turns doing the assignments.
• Splitting the assignment in two and each doing half.
• One person doing all (most of) the work and the other partner putting their name on it, as though the latter had contributed equally.
• One member of a pair coming to see me about an assignment without their partner.
Sources of Stress
• Disparity between experience levels.
• Scheduling difficulties.
• Reliability.
See Bob Noonan: http://www.cs.wm.edu/%7enoonan/pairprog.html Laurie A. Williams and Robert R. Kessler. “All I really need to know about pair programming I learned in kindergarten.” CACM, 43, 5 (May 2000), pp. 109-114.

21

A Little Review

• Variables
• Types
• Arrays
• Classes
• Fields, or data members, or member variables
• Methods

22

An Array Example
Suppose you were asked to write a method to remove duplicates from an array of strings.
• How would you do it?
One way would be to look for duplicates of the first thing in the array, then the second, then the third, and so forth. public static void deleteDuplicates(final String[] data) { for (int left = 0; left < data.length-1; ++left) if (data[left] != null) for (int right = left + 1; right < data.length;
++right)
if (data[left].equals(data[right])) data[right] = null;
} // deleteDuplicates()

This works, but leaves many null references in the array.

23

A second method could be written to return a new array with no nulls: public static String[] condense(final String[] data) { int nonNulls = 0; for (String s: data) if (s != null)
++nonNulls;
String[] result = new String[nonNulls]; int index = 0; for (String s: data) if (s != null) result[index++] = s; return result;
} // condense()

24

A simple test driver might simply create an array and display what the above methods do to the array: public static void main(String[] args) {
String[] a = { ... }; deleteDuplicates(a); for (String s: a)
System.out.println(s);
System.out.println("\n\n\n"); a = condense(a); for (String s: a)
System.out.println(s);
} // main()
} // class DuplicateDeleter

Similar Documents

Premium Essay

Ethics

...Ethics - Wikipedia, the free encyclopediaen.wikipedia.org/wiki/EthicsCached - SimilarShare Shared on Google+. View the post. You +1'd this publicly. Undo Ethics, also known as moral philosophy, is a branch of philosophy that involves systematizing, defending, and recommending concepts of right and wrong ... Business ethics - Professional ethics - Medical ethics - Deontological ethicsEthics | Define Ethics at Dictionary.comdictionary.reference.com/browse/ethicsCached - SimilarShare Shared on Google+. View the post. You +1'd this publicly. Undo (used with a singular or plural verb) a system of moral principles: the ethics of a culture. 2. the rules of conduct recognized in respect to a particular class of ... Bioethics - Metaethics - Situation ethics - Ethics of the fathersEthics Resource Centerwww.ethics.org/Cached - SimilarShare Shared on Google+. View the post. You +1'd this publicly. Undo A nonprofit organization working to be a catalyst in fostering ethical practices in individuals and institutions through programs and publications in business and ... What is Ethics?www.scu.edu/ethics/practicing/decision/whatisethics.htmlCached - SimilarShare Shared on Google+. View the post. You +1'd this publicly. Undo A discussion of both what ethics is and what ethics is not. Ethics Updates Home Page. Moral theory; relativism; pluralism ...ethics.sandiego.edu/Cached - SimilarShare Shared on Google+. View the post. You +1'd this publicly. Undo Ethics Updates provides...

Words: 558 - Pages: 3

Premium Essay

Ethics

...Kathleen F. Brochu Manage Principles Dr. M. Miller Research Paper “Ethics” Should Ethics be taught in the Corporate Environment? By Kathleen Brochu Table of Contents Cover Page Title: “Ethics” Should ethics be taught in the corporate environment? By: Kathleen Brochu Introduction What is Ethics? Can ethics be taught? Whose responsibility is it? Body Meaning of Ethics How one learns ethics How to promote ethics in the work place Conclusion Higher production rates Caring Employees Improved Companies relationships Today’s business environment is not only fast-paced, but also highly competitive. In order to keep pace and stay ahead, possession of several key work ethics is a plus for achieving a successful career. Holding key traits such as attendance, character, teamwork, appearance, and attitude add value to both you as a person and your company. Successful careers come in many flavors, but work ethics are a main ingredient in most recipes for success. Ethics are not born in a vacuum. Ethics are more like a jigsaw puzzle that is thrown together over time, that when complete makes up who you are and what you believe. From our earliest days of life, we start to learn from those around us. These learned behaviors add to the traits that we are already born with and help to shape us into the person we will become. As part of this learning process, we develop what will become our norms. Norms are our everyday...

Words: 1184 - Pages: 5

Free Essay

Ethics

...Running head: Ethics and the College Student 1 The Ethics and College Student Title Page: BY MAURICE M. OWENS ABSTRACT The purpose of this paper is to see the college students’ view of ethics. There was enough evidence to say that college students’ perceive ethics instruction, and those who teach it, to be relevant and beneficial in shaping their own ethical behaviors. Students’ attitudes towards cheating is measured by their perception of cheating in high school, college, and non-major classes. The use of technology has an impact on college ethics since it is easier to cheat in online/hybrid classes and when some kind of technology is used in a course. College students believe that they are living in an ethical campus environment, where their faculty members are mostly ethical in nature and that it is never to late to learn about ethics in college. The Ethics and College Student Title Page: 2 Ethics is truly and important asset within today’s society, there are so many ways you can define ethics. I will say that to me ethics is about your upbringing, starting from the day you were born. Ethics will keep together and organization or it will dismantle and organization, you must enforce structure and guidelines. There are three strong principles when we talk about students and ethics. I call this (R, A, O) Responsibility, Accountability and Ownership. Students must be Responsible and withhold the obligations and the integrity of the school in which...

Words: 1052 - Pages: 5

Premium Essay

Ethics

...Ethics Essay ETH/316 May 21, 2014 University of Phoenix Ethics Essay This week's reading assignment covered many aspects of ethics. In this written assignment, we are asked to compare the similarities and differences between three types of ethical behavior, virtue, utilitarianism, and deontological ethics. To understand the three separate ethic behaviors, I must first define them. Virtue ethics deals with a person’s character, their inward behavior. If a person’s character is good, then so are his or her choices and actions. A person should always strive for excellence in everything that they do. Virtue ethics is not team-based; it’s all about the good of a particular person and how he or she think and act on a daily basis. An example of virtue ethics is, me being in line at the grocery store, the person ahead of me does not have enough money to complete his purchase, so I pay the difference to help him out. Utilitarianism ethics is different from virtue ethics because it promotes the greatest amount of good to a group. Utilitarianism is not individually based, it is more people based. Best described when a person sacrifices a little, in order to get more in return. A personal example of utilitarianism could be the time I was babysitting my niece and two nephews. Instead of me watching basketball on the television, I allowed them to watch a children’s movie in order to gain peace and quiet throughout the house. I gave up the television for the greater...

Words: 450 - Pages: 2

Premium Essay

Ethics

..."Building a code of ethics to make a strong organization has many requirements to make it successful, organized, and valued."-Vivek Wadhwa. One main concept an organization needs to have to drive its success is a code of ethics. Having a code of ethics will manage an organization throughout its expansion and outset. The code of ethics will guide and teach the organization stay on board to its vision, plans, and goals but doing it in a manner or alignment that will protect the organization and its employees. Serving in the military, working in human resource, has introduced and taught a code of ethics for its organization which has many requirements to make it successful, organized, and valued. Working for the military has ethical fundamentals that help address or solve issues and situations that happen. Being in the military there is a certain look that soldiers must represent; this includes the proper uniform attire, attitude, and behaviors. If a soldier goes against what is expected of him or her there are different approaches and regulations that must be considered. For instance, when a soldier violates the law in his or her workplace like lying on documents or stealing, the outcome is an article15 and chances of getting promoted. The code of ethics for the military offers information on reporting suspected violations in reference to enforcement of the provisions of joint ethics. Having a code of ethics in the military keeps soldiers, as well as their families, protected...

Words: 853 - Pages: 4

Premium Essay

Ethics

...Ethics is a very big issue that involves diverse views and beliefs. Ethics has become more widespread with the public in today’s business world. There are three main theories of ethics. The first is the virtue theory which is all based around good quality ethics and sometimes simplified into being character based ethics. The next theory is the utilitarianism theory which is best described as the group theory. The third theory is the deontological theory. These are the three basic ethics theories of today. Virtue ethics describes the character of a moral instrument as a source of power for ethical behavior. A person's character is the entirety of their personality. Character qualities can be good, bad or somewhere in between. They can be commendable or not. The worthy characteristics are called virtues. Utilitarianism is an ethical way of life in which the happiness of the greatest number of people in the society is considered the maximum good. According to utilitarianism the moral worth of an action is determined by its resulting outcome. There is debate over how much thought should be given to actual consequences, potential consequences and planned consequences. Deontological ethics is an approach that focuses on the right or wrong of an action itself contrasting the rightness or wrongness of the penalty of those actions. These three ethical theories address ethics and morality with some similarities and some differences. One of the major differences between virtue theory...

Words: 522 - Pages: 3

Premium Essay

Ethics

...Computer Ethics By Brenda B. Covert |    | | 1     Ethics is a short, two-syllable word of six letters that affects every segment of our lives. Ethics is a moral code involving a clear understanding of right and wrong. Another word for ethics is values. When people talk about ethics, they may be focused on one specific area, such as business, medical, political, environmental, religious, or personal ethics. Today we are going to focus on another important area of ethics: computer ethics.   2     If you have good computer ethics, you won't try to harass or hurt people with your computer, and you won't commit crimes such as information theft or virus creation. The problem that often arises when some of us are on a computer is that we don't see the harm in snooping in another person's private information or trying to figure out their passwords. It seems smart to copy and paste information into a school report and pretend that we wrote it. (Even if the information were public property --which most of it isn't-- that would be dishonest.) The crimes committed with hacking or gaming scams may not seem harmful because the victims lack faces. Flaming (aiming abusive, insulting messages at another person online) seems risk-free since we are anonymous. Indulging in obscenities and other offensive behavior online might feel empowering simply because no one knows who we really are. No one is going to come knocking on the door and demand a physical confrontation. However, every one of those...

Words: 1135 - Pages: 5

Premium Essay

Ethics

...to make the decision themselves. g. I believe I will eat sand because it is the standard meal for my community. * 3. Develop your own workplace example that fits with each system. Present each workplace scenario in a substantial paragraph of approximately 40 words. Although the table field will expand to accommodate your workplace examples, you may list them at the end of the table; make a note in the table to see the attached examples, however, so your facilitator knows to look for scenarios below the table. 4. Format references according to APA standards and include them after the table. Ethical Theory or System | Brief Definition | Other Names for Theory | Real-world Example | Workplace Example | Duty-based Ethics | Regardless of consequences, certain moral principles are binding, focusing on duty rather than results or moral obligation over what the...

Words: 1554 - Pages: 7

Premium Essay

Ethic

...value system or what could be called their personal ethics structure. One’s personal values, or ethics structure, are developed over a lifetime and is ever evolving. There are many factors that come into play during the development of one’s ethics structure. The process begins at childhood. The people that a person comes into contact with, influences inside the home such as parents, siblings, and neighbors. As one grows older and ventures out into the world outside the home teachers, friends and even enemies all help to shape one’s value system. Any type of communication with anyone that we come in contact with has the potential to shape our value system or our ethics structure. Good. Ethics Development One’s beliefs, values or ethics begin forming at an early age and continues throughout one’s life. Most often, those values learned early on are the ones that stay with you in some form or another throughout one’s life. My development started at an early age. I grew up in a very close community. My neighborhood was an extension of my family. Family togetherness, education and sports were very influential aspects that helped shape my ethics structure and continue to guide my actions to this day. Over time, my various experiences have continued to help evolve and shape my value structure. Both positive and negative experiences have played a large role in my value system. Good. Defining Ethics What are ethics? Ethics are the principles, norms, and standards of conduct...

Words: 1463 - Pages: 6

Premium Essay

Ethics

...overview of organizational ethic policies Forbes magazine raised the issue in an article entitled, “Not Qualified for Obamacare’s Subsidies? Just Lie-Govt. To use ‘Honor System’ Without Verifying Your Eligibility” (2013, p.1). With the recent debates on whether or not Obama care is a critical component to ensure that individuals will receive health benefits, the ethical conversation must be debated throughout the United States of America amongst corporations and educational institutions which will be affected. According to Johnson, “The job of the leader, then, is to foster ethical accountability, to encourage followers to live up to their moral responsibilities to the rest of the group, (2012, p. 278. The author’s intent within is paper is to create of code of ethics that will demonstrate the significance of having an ethical and cultural competence in acceptance, understanding and sensitivity; both as an educational goal, and as a fundamental aspect of exemplifying responsibility and accountability. Rationale for the design of your code of ethics The motivation for designing a code of ethics stems from the author’s doctoral course on ethical dilemmas and stewardship. For this author, it opened the gateway to research for meaning and purpose to understand the importance on why educational, corporate and religious organizations must have a code of ethics that is grounded with integrity, authenticity and accountability. In order for a code of ethics to be in alignment personally...

Words: 1149 - Pages: 5

Premium Essay

Ethics

...Shanice Naidoo 212538675 Ethics 101: Essay African ethics and its characteristics This essay seeks to explain what African ethics is as well as its characteristics. In order for that to be done, we must first explain what African ethics is and the foundations upon which it is built. African ethics refers to the values, codes of conduct and laws that govern the moral conduct of people within a given society. African ethics as a whole tends to place its focus on mankind. In this essay paper, we will also seek to explain the concept of Ubuntu, which is a concept that is strongly embedded in African ethics. African ethics is founded on three main concepts, firstly, God; followed by the community and lastly human dignity. According to the norms of African ethics, God is the pivotal focus in one’s life. Africans believe that God is the only one that can judge man because he has created it. They believe that humans should behave in a loving and forgiving manner because God loves and forgives them. It is held that any troubles that people encounter, such as, bad health; natural disasters etc., are not of God but rather of the devil or evil spirits ‘Satan’. Community in African ethics refers to the society as a whole or a certain group of people that one belongs to. The central focus here is the welfare and interests of each member of the community rather than that of the individual. They hold the view that being a member of the community by nature; the individual is naturally...

Words: 1045 - Pages: 5

Premium Essay

Ethics

...deed, word, and thought throughout our lifetime” Elizabeth Kubler-Ross. There are many philosophies on ethics, no matter which one we choose, the decisions we make do have consequences. Those consequences while small or unnoticed will eventually catch up to us. Our core values play a major role on how we deal with moral/ethical situations and while religion may have influenced some of our morals, one does not need to be religious parse to live a morally fruitful life.   Our morals are subject to change because our core values are subject to change and we must always be conscience about the decision we make and the impact that those decision will have on the rest of our lives. When I completed my completed my ethical lens inventory I found out some things about myself. My preferred lens is the rights and responsibilities lens, I believe that everyone should fulfill their duties fairly and tend to think to a problem carefully and research options to find the one that will allow you to fulfill your duties, seeking guidance from to the experts on the subject, to find the best solution for a problem. My goal is to make a fully informed decision and to meet the needs of the community, without harming the least advantaged. Unless we are mindful and work on becoming ever more ethically mature, we will create a crisis in our lives where we have to take stock of ourselves and our ethics. If we are lucky, we will handle the crisis without public embarrassment or having to wear an orange...

Words: 1056 - Pages: 5

Premium Essay

Ethics

...Email: College and Semester: TESC, February 2014 Course Code: PHI-384-GS004 Course Name: Ethics & Business Professional Assignment 1 Questions for Thought Answer each of the following items thoroughly. Each numbered item should require no more than one page (250 words) as a response. 1. What does the term ethics mean to you? Do you see a difference between ethics and morality? Explain your answer. The term ethics to me can be very in-depth but very simply, elaborates on what is right and what is wrong. I consider myself as having ethics because I know right from wrong and because it was instilled upon me at a young age. Very simply, my values guide me along the right paths, eliminating possible gray areas. Both ethics and morality are about doing the right thing in everyday life to better the world but there are some differences even though they very much coincide. Ethics displays rules and guidelines over all, in hopes that these guidelines will become the social norm. Ethics permeates every facet of our life, whether it be at our home or workplace. It sets many different ways to look at situations and helps justify what is good and what is bad. Morality is more of a focus on what we do as individuals, in hopes of promoting the greater good. Ethics tells us that if someone needs help we should help them. Morality is shown when a person decides to hone in on the ethics that they know and step up to the plate and help that person. Morality is also deciding to help...

Words: 677 - Pages: 3

Premium Essay

Ethics

...Ethical Theories Essay Charlotte McGuffey ETH/316 October 28, 2013 Philip Reynolds Ethical Theories Essay There are three normative approaches to ethics; Utilitarianism, deontological, and virtue theory. These three approaches have similarities and differences. This paper will go over those similarities and differences. This paper will also include how each theory details ethics, morality and will illustrate a personal experience that shows that correlation between moral, values, and virtue as they relate to these three theories of ethics. Utilitarianism relies on the predictability of the consequences of an action for the good of the many. “Utilitarianism is a theory that suggests that an action is morally right when that action produces mare total utility for the group than any other alternative” (Boylan, 2009). Another word, utilitarianism does not, in any way, relate to morality or ethics because the action is taken for the most usefulness, no matter what the outcome. Without knowing the end result of an action we cannot ascertain if it is ethical or not. Deontological theory judges the morality of any action dependent on the action’s devotion to rules, obligations, or duty. Deontology is based on whether the action taken is right or wrong. This theory is practical in places where adherence to rules or duty are to be followed; such as the military or religion. The principle of deontology judges the activity and whether that activity sticks with the guidelines or...

Words: 516 - Pages: 3

Premium Essay

Ethics

...Critical Thinking and Ethics Aliya Johnson GEN/201 April 28th, 2015 Critical Thinking and Ethics Critical thinking and ethics are concepts that are very important to use in order to be successful either academically and/or professionally. When it comes to critical thinking and ethics both are very universal; and allow for creative views and ideas to collaborate. In order to get better understandings of how critical thinking and ethics can affect your career both professionally and academically we must first analyze these skills. Critical Thinking One analysis I would like to make is how critical thinking and ethics can impact our lives; which means that we have to first understand the definition of critical thinking. According to D.C. Phillips, “critical thinking is referred to generalized standards and principles of reasoning on which reasons for judgements could be based.” (Norris.S, 2014) In other words, people usually base their judgements on what they believe are generally right. Critical thinking allows us to be able to determine whether or not something is ethically right or wrong or maybe in between. There are six steps one can take towards critical thinking. The first step to critical thinking is being able to remember all events that may have taken place. Then, you have to understand the situation that’s going on around you. For example, you may want to “ask yourself if you can explain the situation in your own word.” (D.Ellis...

Words: 898 - Pages: 4