Type on any line or blank, tap the circles and meters, sketch right on the diagrams and grids, or switch Draw on to write with a finger, stylus or mouse. Your work is saved in this browser on this device only. Nothing is sent anywhere.

3attention · trust · bias · mindset
MathScience3 · PsychologyTechnologyHistoryLanguage & StorytellingArt & DesignExecution
Unizon
Coding & AI Path · Lens 3: Psychology

The Psychology
of Coding & AI

The opening question
Why is it so hard to put your phone down, and why do people trust a chatbot that sounds sure of itself?

Explore how apps are designed to hold attention, why people over-trust machines, how bias gets into AI, what helps people learn to code, and how to stay well online, with places to get help.

Inside this module
  • 00First Principlesp.2
  • 01Attention by designp.4
  • 02Trusting machinesp.5
  • 03Bias in, bias outp.6
  • 04A coder’s mindsetp.7
  • 05Wellbeing onlinep.8
  • ✦Self-check · Make it · 5 Questions · Side Questp.9
How this works
CoreThe main path. Everyone does this part.
Level UpOptional, harder challenges if you want to push further.
Try ItAudit your notifications.

You'll need: a notebook, your phone or tablet settings (with an adult), and a friend.

Coding & AI Path · Unizon01/12
Coding & AI Path · Unizon · Lens 3: Psychology00 · Start here
Before anything else
First
Principles

A first principle is a basic truth you can build on. The psychology of tech rests on four: design shapes behaviour, people treat machines like people, data carries human choices and mistakes are how coders learn.

1

What do I already know?

Dump it all out. Half-sure counts.
Which app is hardest for you to stop using? Why?
Have you ever believed something online that turned out to be false?
Circle every word you could explain to a friend right now. Underline the ones you've heard but couldn't explain.
attentionnotificationvariable rewarddefaultautomation biasanthropomorphismbiasfairnessgrowth mindsetdebuggingcyberbullyingsextortion
2

What is necessary?

The building blocks you need before going further

Everything in this module is built from four bricks. Rate yourself on each one, then check the example to see if your rating holds up.

DesignShapes us. alerts
Got itKindaNot yet
PeopleTreat machines. chatbot
Got itKindaNot yet
DataHuman choices. bias
Got itKindaNot yet
MistakesTeach. bugs
Got itKindaNot yet
Is anything else necessary? What else do you think you'd need to know or have to really get this topic?
The Psychology of Coding & AI · Coding & AI Path · Unizon02/12
Coding & AI Path · Unizon · Lens 3: Psychology00 · Start here
3

What is the objective?

What am I trying to understand or be able to do by the end?
The module's objective

By the end, you’ll be able to explain how design grabs attention, describe automation bias, explain how bias enters AI systems, use strategies for learning to code, and know where to get help online.

  • 01Name 2 attention-grabbing designs.
  • 02Explain automation bias.
  • 03Describe a real bias study.
  • 04Use 2 debugging strategies.
  • 05Name 2 online help services.
  • 06Audit your notifications.
My objective

The list on the left is ours. Now make it yours. What do you want out of this?

By the end, I want to be able to
The part I'm most curious about is
I'll know I've got there when
Knowledge meter

How much do you know about the psychology of coding and AI right now? Shade the boxes in pencil. You'll come back at the end (p.9) and shade it again in pen.

NothingCould teach it

Why start this way? When you know what you already have (1), what you need (2) and where you're going (3), you learn faster and you notice the gaps. Every module on the Coding & AI Path starts with these same three questions.

Your route through this module
00
First Principles
01
Attention
02
Trust
03
Bias
04
Mindset
05
Wellbeing
✓
Check
▶
Make
?
5 Qs
★
Quest
The Psychology of Coding & AI · Coding & AI Path · Unizon03/12
Coding & AI Path · Unizon · Lens 3: Psychology01 · Attention
01
Hooked?

Attention by design

Apps are designed by people who study attention.

Designed to hold attention

Common features

  • Notifications pull you back.
  • Infinite scroll and autoplay remove stopping points.
  • Variable rewards (sometimes a like, sometimes not) keep people checking.
  • Streaks make you feel you’ll lose something if you stop.
Several viewpoints

Helpful or harmful?

Companies say these features help people find content they enjoy. Critics, some researchers and some governments say they can encourage overuse, especially for young people.

Research on harms is still debated; many experts agree that sleep, mood and focus are worth watching.

You can design it back

Change the defaults

Turning off non-essential notifications, using grey-scale mode, keeping phones out of bedrooms and setting app timers are simple ways to take control.

Think & talk
  • Which app feature pulls you back most often?
  • Who should be responsible for healthy app design?
Try it

Spot the hooks

Pick an app you use. List every feature that encourages you to keep going. Which could you turn off?
Level Up

Why are variable rewards so powerful?

Not knowing when a reward comes keeps us checking
The Psychology of Coding & AI · Coding & AI Path · Unizon04/12
Coding & AI Path · Unizon · Lens 3: Psychology02 · Trust
02
Too trusting?

Trusting machines

People often believe machines more than they should.

Automation bias

Trusting the computer

Automation bias is the tendency to accept a machine’s answer even when it’s wrong, like following a GPS onto a closed road.

A smooth, confident AI answer can make this worse.

The ELIZA effect

Treating machines like people

In 1966, Joseph Weizenbaum built ELIZA, a simple chatbot that mostly repeated users’ words back as questions. Some users still felt it understood them.

Modern chatbots are far more capable, but they still don’t have feelings or friendships, even when they sound caring.

Healthy habits

Use AI wisely

Treat AI answers as a first draft, not the final word. Ask “How could I check this?” and talk to real people, especially about health, safety or big decisions.

Think & talk
  • Have you ever trusted a machine too much?
  • Why might a friendly-sounding chatbot be easy to over-trust?
Try it

Trust test

Write 3 kinds of questions you would trust an AI tool with, and 3 you’d always check with a person or a reliable source.
Level Up

What is automation bias?

Trusting a machine’s output too much, even when it’s wrong
The Psychology of Coding & AI · Coding & AI Path · Unizon05/12
Coding & AI Path · Unizon · Lens 3: Psychology03 · Bias
03
Human choices inside

Bias in, bias out

AI can repeat and magnify human biases.

A real study

Gender Shades, 2018

Researchers Joy Buolamwini and Timnit Gebru tested commercial face-analysis systems that guessed gender from photos. Error rates were up to 34.7% for darker-skinned women but at most 0.8% for lighter-skinned men.

Buolamwini & Gebru, Gender Shades, 2018 (MIT Media Lab).

How bias gets in

Human choices

  • Data that leaves out or under-represents groups.
  • Labels that carry people’s stereotypes.
  • Goals that measure the wrong thing.
  • Testing that checks only average accuracy.
After the study

Things can change

Several companies said they improved their systems after the study. Researchers continue to debate how to measure fairness, and different definitions can conflict.

Think & talk
  • How could a company test whether its AI is fair?
  • Who should check AI systems for bias?
Try it

Bias detective

Image search “scientist” or “nurse” with an adult. Who appears most? What might an AI trained on these images learn?
Level Up

Why isn’t average accuracy enough?

It can hide much worse results for some groups
The Psychology of Coding & AI · Coding & AI Path · Unizon06/12
Coding & AI Path · Unizon · Lens 3: Psychology04 · Mindset
04
Stuck is normal

A coder’s mindset

Good coders aren’t people who never make mistakes.

Learning to code

What helps

  • Growth mindset: skills grow with practice.
  • Small steps: run code often, change one thing at a time.
  • Read error messages: they usually say where to look.
  • Pair programming: one types, one guides, then swap.
Bugs are normal

Everyone debugs

Professional programmers spend a lot of their time finding and fixing bugs. Frustration is normal; taking a break often helps you spot the problem.

“Rubber-duck debugging”: explain your code line by line to a toy duck. Saying it out loud reveals mistakes.

Coding is for everyone

Who codes?

People of every background code. Ada Lovelace wrote what is often called the first published computer program in 1843, and many early programmers were women (see Lens 5).

Think & talk
  • What do you do when you feel stuck on a problem?
  • Why might explaining your code out loud help?
Try it

Bug diary

The next time code doesn’t work, write the error, what you tried and what fixed it. Do this for 3 bugs.
Level Up

Why change one thing at a time when debugging?

So you know which change fixed or broke it
The Psychology of Coding & AI · Coding & AI Path · Unizon07/12
Coding & AI Path · Unizon · Lens 3: Psychology05 · Wellbeing
05
Stay well online

Wellbeing online

Online life is real life; help is available.

Online risks

Know the signs

  • Cyberbullying: repeated mean messages, posts or exclusion.
  • Sextortion: someone threatens to share intimate images unless you pay or send more.
  • Scams: urgent messages asking for passwords, gift cards or money.

If it happens: stop replying, don’t pay, save evidence, block and tell a trusted adult.

It’s not your fault

Getting help

People who are targeted are not to blame. In Canada, Cybertip.ca takes reports of online sexual exploitation, and NeedHelpNow.ca helps young people get images taken down.

Canadian Centre for Child Protection, checked October 2026.

Need to talk?

You don’t have to cope alone

Talk to a trusted adult. Kids Help Phone: 1-800-668-6868 or text CONNECT to 686868. Call or text 988 for suicide crisis support. Alberta Mental Health Help Line: 1-877-303-2642. In danger? Call 911.

Checked October 2026.

Think & talk
  • Who would you tell if something online upset you?
  • How can friends help each other stay safe online?
Try it

Safety plan

Write who you’d tell, what you’d save and where you’d report if something online made you feel unsafe.
Level Up

Should you pay someone threatening to share an image?

No: stop, don’t pay, save evidence and get help
The Psychology of Coding & AI · Coding & AI Path · Unizon08/12
Coding & AI Path · Unizon · Lens 3: PsychologySelf-check
✓
No pressure, just proof

Quick self-check

Six questions, covering every stop. Show your thinking. Answers are upside down at the bottom; no peeking till you're done.

1 · Name 2 attention-grabbing app features.

2 · What is automation bias?

3 · What did the Gender Shades study find?

4 · Name 2 ways bias gets into AI.

5 · What is rubber-duck debugging?

6 · Name 2 places to get help online.

1) e.g. notifications, infinite scroll, streaks · 2) trusting a machine too much · 3) much higher error rates for darker-skinned women · 4) e.g. data, labels, goals · 5) explaining code aloud to find bugs · 6) e.g. Cybertip.ca, NeedHelpNow.ca, Kids Help Phone
Back to First Principles

Re-shade your knowledge meter

How much do you know about the psychology of coding and AI now? Flip back to p.3 and shade the meter again in pen (or shade this one). Did any of the four bricks on p.2 move from "Not yet" to "Got it"?

NothingCould teach it
Did I hit my objective? What's my evidence?
The idea that surprised me most:
The Psychology of Coding & AI · Coding & AI Path · Unizon09/12
Coding & AI Path · Unizon · Lens 3: PsychologyMini challenge · Make it
Mini challenge · Execution

Notification audit

Measure and reduce the alerts that grab your attention.

1 · Plan

For 3 days, count your notifications. Then turn off the ones you don’t need and count again.

  • Adult knows the plan
  • Daily counts recorded
  • Settings changed
  • Mood and focus noted

2 · Counts

DayNotifications
Day 1
Day 2
Day 3
After changes
Change %

3 · Must-haves

  • Kept safety alerts on
  • Percent change calculated
  • One habit kept
  • Shared with family

4 · What I noticed

Safety first

Keep emergency, family and school alerts on. Work with a parent or guardian when changing device settings.

The Psychology of Coding & AI · Coding & AI Path · Unizon10/12
Coding & AI Path · Unizon · Lens 3: Psychology5 Questions I Still Have
The best part of learning is what's next

5 Questions
I Still Have

This module didn't answer everything. Good. Write 5 new questions it didn't answer, one of each type below. There are no wrong questions, only ones nobody's asked yet.

1
How does it work?
Pick something you've seen or used and wonder about the inside of. e.g. "Who decides how an app is designed?"
2
Why?
Ask about a reason or a cause. e.g. "Can AI be made completely fair?"
3
What if?
Change one thing and imagine the result. e.g. "What if apps had to show how long you’d used them?"
4
Connect it
Link this to another lens (math, science, psychology, technology, history, language & storytelling, art & design, execution) or another subject. e.g. "How do I start coding for real? (Lens 4!)"
5
My life & community
Bring it home: your family, your friends, your community. e.g. "Which online habit would I most like to change?"

★ Star the one question you'd most like answered. You'll need it on the next page.

The Psychology of Coding & AI · Coding & AI Path · Unizon11/12
Coding & AI Path · Unizon · Lens 3: PsychologySide Quest · Optional
Optional · for the curious

Side Quest

Take your starred question from p.11 and go find the answer, or at least a better question. You're the researcher now.

My quest question:

1What I'll find out

Break your big question into 2 or 3 smaller ones you could actually answer.

2Where I'll look

A library (Edmonton Public Library counts!)An astronomer, engineer or planetarium guideAn experiment I run myselfTrustworthy websites (who wrote it? when?)A book or documentary

3How I'll share it

A one-page zineA 60-second video or talkA poster or infographicA 2-minute talkSomething else

Who I'll share it with:

Done by:

Next on the Coding & AI Path Lens 4 · Technology asks: how do you write real code in Scratch, Python and JavaScript, debug it and use AI tools wisely?
The Psychology of Coding & AI · Coding & AI Path · Unizon12/12