Grade by Grade
D. Topics in Computer Science · Topics in Computer Science: Sustainability, Ethics, Emerging Technologies and Careers

Analysing Ethical Issues in Computing: Lenses, Stakeholders and Trade-offs

D2.1About 70 minutes
Learning goals
  • I can distinguish ethics from law and from organizational policy.
  • I can analyse a computing issue through four ethical lenses: consequences, duties and rights, fairness, and character.
  • I can identify stakeholders and options and use a six-step method to reach a justified decision.
  • I can use a simple scoring program to compare options by total benefit and by the worst-off stakeholder.

Words to know

ethics
The study of what is right and wrong and what we should do.
stakeholder
Any person or group affected by a decision, directly or indirectly.
consequentialism
An ethical approach that judges actions by their results.
deontology
An ethical approach based on duties, rules and rights that hold whatever the results.
virtue ethics
An ethical approach that asks what a person of good character would do.
keystroke logging
Recording every key pressed on a device, by software or hardware.
terms of service
The rules a company sets for using its product, which users agree to.

"It's not illegal, so it's fine"... right?

Your friend asks for your streaming password. A parent wants to install software that records every key typed on the family laptop. A classmate found a way to get paid software free. Each situation involves computers, real people and a decision. Expectation D2.1 asks you to investigate and analyse ethical issues like these: sharing passwords, downloading music and video, software piracy, keystroke logging, phishing and cyberbullying.

This lesson gives you a method you will use in the rest of the ethics lessons in this unit: Privacy and Personal Data, Intellectual Property, Codes of Ethics, Ethics of Artificial Intelligence and Ethical Computing in Practice.

Ethics, law and policy are different

  • Law is what governments require, enforced by courts. Example: in Canada, the Criminal Code makes it an offence to use a computer system without authorization.
  • Policy and terms of service are rules set by an organization, such as a school's acceptable use policy or a streaming service's account rules. Breaking them can cost you access, but is usually not a crime.
  • Ethics asks what we should do. Something can be legal but unethical (reading a friend's messages on a phone they left unlocked) or, sometimes, illegal but defended on ethical grounds (a whistle-blower revealing wrongdoing, which is debated). Laws often trail behind technology, so ethics has to guide us in situations the law hasn't caught up with.

Four lenses

Philosophers have argued about ethics for thousands of years. You don't need to pick one theory; you use several as lenses and see whether they agree.

  1. Consequences (sometimes called consequentialism or utilitarianism): judge an action by its results. Add up the benefits and harms for everyone affected.
  2. Duties and rights (deontology): some actions are right or wrong in themselves. Keep promises, respect consent, follow fair rules, respect people's rights, even when breaking them would produce a better result.
  3. Fairness (justice): are benefits and burdens shared fairly? A useful test is to look at the worst-off person: an option that is good on average but crushes one group may be unfair.
  4. Character (virtue ethics): what would a person of good character, honest, responsible and caring, do? Would you be comfortable if your choice were made public?
Four lenses for analysing an ethical issueThe issuee.g. sharing a passwordConsequencesWhich option produces the mostbenefit and least harm overall?Duties and rightsWhich rules, promises, laws orrights apply, whatever the result?FairnessAre benefits and burdens sharedfairly? Who is worst off?Character (virtue)What would an honest, responsible,trustworthy person do?
Look at the same issue through each lens. When they agree, you can be confident. When they disagree, you have found the real ethical tension to discuss.

A six-step method for analysing an issue

  1. State the facts and what is uncertain.
  2. Identify the stakeholders: everyone affected, directly or indirectly.
  3. List the options, including creative middle-ground options.
  4. Apply the lenses to each option.
  5. Check law and policy (laws, school policy, terms of service, professional codes).
  6. Decide and justify, stating which values you prioritized and what would change your mind.
Stakeholder map: a keystroke logger on a shared family computerPersoninstallingDirectly affected: everyonewho types on the laptopIndirectly affected: friendswhose messages are capturedSociety: trust in devicesand privacy
A stakeholder map places the people closest to the decision in the centre. Keystroke logging affects not only the typist but also the people whose messages are recorded.
Worked example

Example 1: Analysing keystroke logging at home

A parent is worried about who their 15-year-old is talking to online and considers secretly installing a keystroke logger (software that records every key pressed) on the shared family laptop. Analyse the issue.

  1. Facts: the logger would capture everything typed by anyone: passwords, private messages, banking details of other family members. The worry is real but no specific danger is known.
  2. Stakeholders: the teen; other family members who use the laptop; friends whose messages are captured; the parent.
  3. Options: (a) secret logger; (b) a conversation and agreed rules; (c) openly using parental-control software with the teen's knowledge; (d) do nothing.
  4. Consequences: (a) may reveal a risk, but if discovered it can damage trust badly, and the log is a security risk itself because it stores everyone's passwords. (b) and (c) build trust and still give some protection.
  5. Duties and rights: secret recording ignores consent and the privacy of others who never agreed, including people outside the family.
  6. Fairness: other family members and friends bear a privacy cost for a worry about one person.
  7. Character: an honest, caring parent would usually prefer openness.
  8. Law and policy: secretly installing monitoring software on someone else's device or intercepting private communications can be illegal in Canada; laws are complex, so families should be cautious and get advice.

Most lenses favour (b) or (c): an honest conversation, possibly with openly disclosed parental controls. A secret logger fails the duties, fairness and character lenses and creates a new security risk. If the parent learned of a specific, serious danger, the balance could change, and the analysis should say so.

Making the trade-offs visible with Python

The consequences lens adds up effects; the fairness lens looks at the worst-off stakeholder. The program scores each option's effect on each stakeholder from −3 (serious harm) to +3 (strong benefit) and reports both. The scores are judgments, not facts, so the real value is in discussing them.

stakeholders = ["teen", "parent", "sibling", "friends"]
options = {
"secret logger": [-3, 1, -2, -2],
"talk and agree": [ 2, 1, 0, 0],
"open parental tools": [ 0, 2, 0, 0],
}
for name, scores in options.items():
total = sum(scores)
worst = min(scores)
who = stakeholders[scores.index(worst)]
print(f"{name:20} total {total:+d} worst-off {who} ({worst:+d})")

min finds the worst score and index finds whose it is. The format code +d always shows a sign.

secret logger total -6 worst-off teen (-3)
talk and agree total +3 worst-off sibling (+0)
open parental tools total +2 worst-off teen (+0)

Output of the program above (what Python prints).

Just for fun

I changed my password to "incorrect".

Now whenever I forget it, the computer reminds me: "Your password is incorrect."

Hands-on activity

Ethics case file: password sharing

You need: paper or a document, and one or two family members or friends to discuss with.

Case: Maya shares her music-streaming password with her cousin in another city "because the account is family-priced anyway". The service's terms say an account is for one household.

  1. Work through the six steps. List at least four stakeholders (think about the artists and the company's other customers too).
  2. Fill in a scores table like the Python example for three options, including a creative middle option.
  3. Discuss with your family: do they score it the same way? Record one point where you disagreed and why.
  4. Write a 200-word conclusion that states your decision, the values you prioritized, and one fact that would change your mind.

What to look for: facts separated from opinions, terms of service correctly treated as policy rather than criminal law, all four lenses used, and a conclusion that follows from the analysis. There is no single "right" answer, but there are well-reasoned and poorly reasoned ones.

Your turn

1

Explain the difference between law, policy and ethics, with one computing example of each.

2

Name the four lenses and give the key question for each.

3

What is a stakeholder? List three stakeholders when a student shares their school account password with a friend.

4

Using the Python output, which option has the highest total, and who is worst off under the secret logger?

5

Give one reason a keystroke logger is a security risk in itself.

6

Why can something be legal but unethical? Give an example.

More practice: warm-up

1

What does a keystroke logger do?

2

Which lens asks, "Who is worst off?"

3

Is breaking a streaming service's terms of service usually a crime?

4

What is step 1 of the six-step method?

5

Which lens asks what an honest, caring person would do?

More practice: on your own

1

Add another option to the program: "do nothing": [1, -1, 0, 0]. What does the program print for it?

2

A company lets IT staff install keystroke loggers on employees' work computers. Using the lenses, what conditions would make this more ethically acceptable?

3

Why can the consequences lens and the fairness lens disagree? Use numbers.

4

Your friend says, "Everyone shares passwords, so it's fine." Which lens does this argument fail to address, and why?

5

List three options (including a middle-ground one) for a student who discovers a classmate's password written on a sticky note in the lab.

Challenge

1

Write a function best_by_fairness(options) that returns the name of the option whose worst score is highest (the 'maximin' rule). What does it return for the three options in the lesson?

2

A school wants to monitor all student keystrokes on school laptops to detect cyberbullying. Analyse with at least three lenses and recommend a policy.

3

Argue the strongest case for sharing a streaming password with a cousin, then the strongest case against, then decide.

Check your understanding

Quiz

1.

Which lens asks whether benefits and burdens are shared fairly and looks at the worst-off person?

2.

Breaking a streaming service's terms of service by sharing a password outside your household is best described as…

3.

Why is a secretly installed keystroke logger a problem even for people who are not its target?

4.

What is the main purpose of a stakeholder map?

5.

An option scores [3, 3, −3] for three stakeholders and another scores [1, 1, 1]. Which statement is accurate?

6.

Which is the best first step when analysing an ethical issue?

For parents and teachers

Big idea: D2.1 asks students to investigate and analyse an ethical issue related to computers (for example password sharing, downloading, piracy, keystroke logging, phishing or cyberbullying). This lesson gives a structured method used throughout the ethics lessons in this unit.

How to help: The activity works best as a real conversation. Share your own view on password sharing and let your teen challenge it with the lenses. Model changing your mind when given a good reason. The scoring program is only a tool for discussion; the scores are judgments.

Common difficulties:

  • Treating "legal" as the same as "ethical", or treating terms of service as criminal law.
  • Jumping to a conclusion before listing stakeholders and options.
  • Using only one lens. Strong analyses show where lenses agree and disagree.
  • In Example 1, the lesson does not give legal advice: monitoring and interception laws are complex. Families with real safety worries should seek professional advice.