Solving Complex Problems Through Programming · Mr. MacKenty · ASW · 2026–2027

Design systems
that hold.

How do I design a system that solves a problem well — and how do I know it does?

Syntax is not the challenge. The challenge is the problem itself — algorithmically expensive, systemically unpredictable, socially misunderstood. This course teaches you to see that difference and build around it.

Year2026–2027
GradeGrade 10 · MYP Design
StackPython · Flask · SQL
Units4 Units + Capstone
What this course is really about

Three kinds of hard

The previous course taught you to think computationally. This one teaches you to solve problems that resist straightforward solutions — problems with multiple interacting components, messy real-world constraints, and requirements that shift as you understand them better.

Algorithmic

Code that scales

Some computations are intrinsically expensive. A solution that works for 100 records may be unusable at 100,000. You learn to see that difference before it becomes a crisis.

Systemic

Systems that connect

When components interact, the behaviour of the whole cannot be predicted from any single part. You design for interfaces, not just implementations.

Social

Problems that shift

The hardest layer in many problems is not the computation — it's understanding what people actually need. This only becomes clear when they use what you built.

Stop asking "How do I write code to solve this?" Start asking "How do I design a system that solves this well — and how do I know it does?"

Every unit builds the same habit: predict before you run. Before executing any program — whether you wrote it, a partner wrote it, or AI generated it — you write down what you expect it to happen. This applies everywhere, always.

Mode 1 · AI Off

"The Bench"

Used when AI is most likely to mislead you — problems that require genuine problem intuition, not pattern-matching on code. Productive struggle is the point.

Mode 2 · AI as Critic

"The Design Review"

You use AI to interrogate your design, not generate your code. Give AI your architecture and ask what could go wrong. Every interaction is predicted, logged, and reflected on.

Mode 3 · AI as Collaborator

"The Build"

Full access — you direct AI across a complex build and own everything it produces. You justify every architecture decision and defend every line in a live oral check.

The design cycle

Every major project moves through four phases. The process is as important as the product.

Inquire
Who has this problem? What already exists? What are the constraints?
Develop
Component diagram, normalised schema, API specification — before any code
Create
Core feature first. Multi-file from day one. One commit per day.
Evaluate
Test against stakeholder's actual use — not just your own test cases

Two stakeholder consultations — not one

Every pathway unit requires two documented consultations. The first happens before the architecture is finalised. The second happens when a partial working system can be demonstrated. The gap between what the stakeholder said they needed and what they discover when they use a real system is where the most important design learning occurs.

Five units, one year

What you'll be working on

Each unit has its own AI mode. Two pathway projects are formally assessed. You choose two different pathways across the year — the transfer between them is the most important learning design in the course.

01
Aug 18 – Sep 26 · 6 weeks
Foundation

Stack familiar, syntax not the constraint. You read and trace 60-line multi-file programs, classify problems by complexity type, build a constraint-satisfaction program without AI, and use AI as a design critic for the first time.

Mode 1 → 2 Complexity types Code reading Constraint satisfaction
02
Sep 29 – Nov 27 · 8 weeks
Pathway A — First formal MYP project

Your chosen pathway, your chosen problem. Multi-file system built from an approved architecture document. Two stakeholder consultations. Mode 2 throughout — AI critiques your design, never writes it for you.

Mode 2 MYP Criteria A–D Live oral defense
03
Nov 30 – Jan 29 · 6 teaching weeks
Connected Systems

Relational schemas, complex SQL joins, multi-endpoint REST APIs, authentication, and input validation — from scratch. Ends with a Mode 3 mini project: your first full-access AI experience at manageable scope, before the stakes are high.

Mode 2→1→1→2→3→1 SQL & REST API Mode 3 bridge
04
Feb 1 – Apr 2 · 8 weeks
Pathway B — You're the director

A different pathway from Unit 2. Full AI access. You write your own assessment criteria. The modification challenge is new this year — you'll change code live during the oral defense and explain every effect.

Mode 3 MYP Criteria A–D Self-designed criteria
Apr 5 – Jun 17 · 10 weeks
Capstone — Build something real

One problem. Two pathways structurally integrated — not side by side, but genuinely interdependent. A real named stakeholder, consulted three times. Twelve-minute oral defense with a live modification challenge.

Mode 3 Real stakeholder 12-min defense
Week by week

What we're learning each week

Click any week to expand the details. The coloured pill shows the AI mode. Use the finder below to jump to a specific date.

Find my week

Enter any date to see what unit and topic we're on.

Unit 1 · Foundation Complexity, code-reading, and problem intuition
Week 1 Environment, complexity framing, and a 60-line program Aug 18–22 AI Off
Topics this week
Stack verification end-to-end What makes a problem genuinely hard? First challenge problem: messy, ambiguous requirements Read & annotate a 60-line multi-file program

Every student confirms the full stack runs end-to-end on day one. Then the course opens with the central question: what makes a problem genuinely hard? You read and annotate a 60-line multi-file program you've never seen — tracing execution across files, predicting output before running.

Note: 4-day week — class starts Tuesday Aug 18.
Resources
Week 2 Code that runs vs. code that scales Aug 25–29 AI Off
Topics this week
Stack review at speed The gap between correct and scalable Trace a multi-function multi-file program: predict before run AI-free quiz: complexity vocabulary + code-reading

You trace the behaviour of a multi-function, multi-file program under different inputs — writing your prediction before each run. The quiz tests whether you have the vocabulary to talk about why code fails at scale, not just when it does.

Resources
Week 3 Three types of complexity — case studies and decomposition Sep 1–5 AI Off
Topics this week
Algorithmic, systemic & social complexity Case studies: one for each type Paper-based problem decomposition Classify problems by type and justify in writing

Each of the three complexity types gets dedicated class time with its own case study. Social complexity is the hardest layer — understanding what people actually need is a design problem, not a communication problem. You decompose three non-trivial problems on paper before touching any code.

Resources
Week 4 Constraint-satisfaction program — AI Off build Sep 8–12 AI Off
Topics this week
Build a constraint-satisfaction program of your choosing Mode 1 only — no AI AI-free quiz: problem decomposition & algorithmic reasoning

You choose the problem, you design the algorithm, you build the program — without any AI assistance. This is the foundation the rest of the year depends on. The problem intuition you build here is what lets you evaluate AI output critically later.

Resources
Week 5 Mode 2 introduced — AI as design critic Sep 15–19 AI Critic
Topics this week
Refactor and extend your constraint-satisfaction program Mode 2 introduced: give your design to AI Prompt: "What is fragile about this design? Where would it break?" Document what changed — and what you rejected and why AI use logs begin

AI becomes available — but as a critic, not a code generator. Before asking AI anything, you write your prediction: what do you expect it to say? Then you log every interaction: what was challenged, how you responded, and — critically — what you disagreed with and why.

Resources
Week 6 Unit 1 wrap-up + pathway selection Sep 22–26 AI Critic
Topics this week
Code-reading challenge: annotate 60-line multi-function program Pathway guides distributed Pathway selection due Friday Oct 3

The code-reading challenge is the final check of Unit 1 — can you annotate what each section does, trace execution, and identify the design decisions in code you've never seen? Pathway guides are distributed; you read them and annotate two you're considering.

Note: PD Day Friday Sep 25 — 4-day week.
Resources
Unit 2 · Pathway A First formal MYP criterion project
Week 7 Inquire — real complexity, first stakeholder consultation Sep 29 – Oct 3 AI Critic
Topics this week
Pathway A begins Identify a problem with real complexity First stakeholder consultation: before architecture begins Stated needs vs. latent needs protocol Risk register drafted Pathway selection due Friday

Before any architecture work, you conduct the first stakeholder consultation using a structured protocol that distinguishes stated needs (what they say they want) from latent needs (what they'll discover they needed when they use a real system). This distinction shapes every design decision that follows.

Resources
Week 8 Develop — architecture document and design review gate Oct 6–10 AI Critic
Topics this week
Component diagram Normalised database schema API specification: endpoints, methods, response contracts Multi-file project structure Teacher design review gate: no code until approved

No code is written until the architecture document is approved. This is a hard gate. The document must be specific enough that a classmate could implement from it. AI may help you research approaches — the architecture is yours.

Resources
Week 9 Create — Build week 1: multi-file from day one Oct 13–17 AI Critic
Topics this week
Build begins — multi-file project from day one Core feature first AI use log entry required before every AI interaction One commit per day minimum

Build begins. Your approved architecture is your contract. The question at the start of every class: "Am I building what I designed, or have I drifted?" AI use log entries must include your prediction of what AI will say before you ask.

Resources
Week 10 Disrupted week — individual pathway build work Oct 20–24 AI Critic
Topics this week
Individual pathway build Students without design approval resolve this this week

Disrupted week: UN Day Wednesday Oct 21, Parent–Teacher Conferences Thursday–Friday Oct 22–23. Use the available time for independent build work. Students who have not yet received design approval must resolve this before Autumn Break.

Break: Autumn Break Oct 26–30. No school.
Resources
Week 11 Create — Build week 2: bug injection + mid-project check Nov 2–6 AI Critic
Topics this week
Build continues AI use logs graded end of week Bug-injection exercise: 30-line AI-generated program with embedded logic errors Find and explain each bug before running Mid-project formative check: show the component you're least confident about

The bug-injection exercise: a 30-line AI-generated program that runs without crashing but produces wrong results. Your task is to find and explain each bug before testing with inputs. AI produces plausible-looking errors — this exercise builds the skill to catch them. The mid-project check is a 10-minute conversation, not a grade: show the component you're least confident about, and name one thing that has surprised you.

Resources
Week 12 Create — Build week 3: peer architecture review Nov 9–13 AI Critic
Topics this week
Build continues Peer architecture review: swap design documents with a different-pathway partner "What would break first under real load?" Document and respond in writing

A different-pathway partner reads your architecture document and asks: "What would break first under real load?" You document the challenge and write a response — either a design change or a justified defence. This is adversarial thinking as a design practice.

Resources
Week 13 Create — Build week 4: second stakeholder consultation Nov 16–20 AI Critic
Topics this week
Integration and polish Second stakeholder consultation: demo the partial working system "Does this still match what you need?" "Defend your code" oral checks begin — includes modification challenge

The second stakeholder consultation is the most valuable Criterion D moment available to you. A stakeholder who says "not quite" is giving you more than one who says "yes." Document the gap between what they said they needed in Week 1 and what they discover using a real system now.

Resources
Week 14 Evaluate — Submission + written evaluation (short week) Nov 23–25 AI Critic
Topics this week
Project submission Written evaluation: what worked, what failed, what AI got wrong AI category analysis

3-day week only — Thanksgiving Thursday and Friday. Project submission, written evaluation, and AI category analysis due. Students who name specific failures — including places AI led them wrong — score higher than students who claim everything went fine.

Note: Thanksgiving Thu–Fri Nov 26–27 — 3 days only.
Resources
Unit 3 · Connected Systems The technical backbone
Week 15 Relational database design — schemas on paper Nov 30 – Dec 4 AI Critic
Topics this week
Why normalisation? One-to-many and many-to-many relationships — on paper first Design schemas for real scenarios; identify anomalies from bad design AI used to critique student schemas (with prediction sections)

Schema design decisions cascade upward through every layer. A bad schema makes every query harder, every API more complex, and every client less reliable. You design schemas on paper before writing any code, then use AI to interrogate your design — not generate it.

Resources
Week 16 Complex SQL — JOINs, subqueries, aggregation (AI Off) Dec 7–11 AI Off
Topics this week
INNER JOIN, LEFT JOIN Subqueries and aggregation Every query written on paper first; result predicted before running No ORM — raw SQL only

No AI this week. Raw SQL is the honest tool — understanding what an ORM does requires being able to do it without one. Every JOIN you can't write on paper is a JOIN you can't debug in production. You write queries on paper, predict the result set, then run and verify.

Resources
Week 17 REST API design — multi-endpoint Flask, pure JSON (AI Off) Dec 14–18 AI Off
Topics this week
HTTP methods and status codes Resource naming conventions JSON response contracts Build a multi-endpoint Flask API — pure JSON, no HTML

An API is a contract between a server and everything that talks to it. Precision in HTTP methods, status codes, and response shapes is professional courtesy to every future client — including future you. You build a multi-endpoint API with Mode 1 discipline before the break.

Holiday Break: Dec 21 – Jan 8. No school (3 weeks).
Resources
Week 18 Authentication and input validation Jan 11–15 AI Critic
Topics this week
Retrieval task — first class back (5 min) Session-based authentication added to the pre-break API Structured error handling Input validation gaps AI as critic: "What validation gaps does this API have?"

Security is structural — authentication and validation are not features added at the end, they are design decisions that affect the schema, the API contract, and the client. You add auth and validation to the API you built before the break, using AI to interrogate your choices.

Resources
Week 19 Mini connected-systems project — Mode 3 bridge Jan 18–22 AI Collaborator
Topics this week
Mini project: fully normalised schema Multi-endpoint REST API with auth and validation Client that consumes it Mode 3 — full AI access, full accountability AI log with prediction sections Semester 1 ends Friday Jan 22

This is the first Mode 3 experience of the year — and it is deliberately placed here. Students entering Unit 4 having never experienced Mode 3 would face a cold start on a large assessed project. This mini project gives everyone one complete Mode 3 experience at manageable scope. Mode 3 is qualitatively different from Mode 2: you act as the architect, not the critic. That difference cannot be read about — it has to be encountered.

Semester 1 ends Friday Jan 22.
Resources
Week 20 Unit 3 close — AI-free quiz + 80-line code-reading challenge Jan 25–29 AI Off
Topics this week
Semester 2 begins Monday Jan 25 AI-free quiz: schema design, JOIN queries, REST principles, auth concepts 80-line code-reading challenge: unfamiliar database-backed Flask API Unit 4 preview Friday

80 lines of code: an unfamiliar database-backed Flask API you've never seen. Annotate what each section does, trace the request-response cycle for two different endpoints, and identify one design decision and its consequence. This is the readiness check for Unit 4.

Resources
Unit 4 · Pathway B You're the director
Week 21 Transfer reflection + formal proposal Feb 1–5 AI Collaborator
Topics this week
Transfer reflection: what carries over from Pathway A? What needs relearning? Choose a different pathway from Unit 2 Formal proposal: problem + source review + named stakeholder First stakeholder consultation conducted Student-proposed assessment criteria drafted Risk register

Unit 4 opens with a 15-minute written transfer reflection — before any pathway work begins. What thinking do you carry from Pathway A? What will you need to relearn? What questions does this new domain raise that you can't yet answer? Transfer does not happen automatically; it requires this explicit bridging moment.

Resources
Week 22 Develop — architecture document + teacher design gate Feb 8–12 AI Collaborator
Topics this week
Architecture document: component diagram, schema, API spec, data flow diagram All design decisions documented before any implementation Criteria finalised and teacher-approved Teacher design approval gate — no code until approved

Your architecture is specific and load-bearing: removing any component should visibly break something. Your schema is normalised and the normalisation is justified. Your criteria must be measurable — specific enough that you can point to evidence for or against each one.

Resources
Week 23 Create — Build week 1: multi-file from day one Feb 15–19 AI Collaborator
Topics this week
Build begins — full AI access Analytical AI log required from day one Multi-file project from day one Oral check date posted

Full AI access begins. You direct AI across the system — every piece of AI-generated code is read before it is run. The analytical log entries are categorised by type (clarification, code generation, debugging, evaluation). Daily question: "Am I building what I designed?"

Break: Winter Break Feb 22–26. No school.
Resources
Week 24 Create — Build week 2: cross-pathway peer presentation + mid-project check Mar 1–5 AI Collaborator
Topics this week
Retrieval task — first class back (5 min) Re-read design doc and commit history before writing a new line Cross-pathway peer presentation 1: explain architecture to a different-pathway partner Mid-project formative check: show the component you're least confident about

4-day week (PD Day Monday). After a week away, you re-read your design doc and commit history before writing a new line. A different-pathway partner gets your architecture explained to them — their confusion tells you where your design is unclear.

Resources
Week 25 Create — Build week 3: complexity checkpoint + modification drill Mar 8–12 AI Collaborator
Topics this week
Complexity checkpoint: where is the design under stress? Mid-project modification drill: 3 planned changes made live

The modification drill prepares you for the oral defense: identify three changes you could be asked to make live, make each one deliberately, and explain exactly what changed and why — including any side effects. The most expensive design errors are the ones discovered too late.

Resources
Week 26 Create — Build week 4: second peer presentation + test cases Mar 15–19 AI Collaborator
Topics this week
Analytical AI log mid-project teacher review Cross-pathway peer presentation 2 At least 3 documented test cases — including one that reveals a flaw

Different partner from Presentation 1. Focus: "What has changed since last time? What feedback did you act on?" The three test cases must include at least one that reveals a real flaw — not just cases designed to pass.

Resources
Week 27 Create — Build week 5: second stakeholder consultation + final sprint Mar 22–26 AI Collaborator
Topics this week
Second stakeholder consultation: partial demo "Does this still match what you need?" Final sprint — submittable state by Wednesday

3-day week (P-T Conferences Thu–Fri). Second stakeholder consultation: show a partial working system and ask whether it still matches what they need. The program must be in a submittable state by close of Wednesday.

Resources
Week 28 Evaluate — Submission + 8-minute oral defense Mar 29 – Apr 2 AI Collaborator
Topics this week
Final program submitted Monday Analytical AI log submitted Monday 8-minute oral defense: code walkthrough + live modification challenge Written evaluation + AI category analysis Capstone preview Friday

The 8-minute defense includes a code walkthrough and a live modification challenge — you make a specific change on the spot and explain what changed, why it works, and what else it affects. Mode 3 means you had full AI access — so the hardest questions will be about AI-generated code.

Deadline: Final program + analytical AI log — Monday Mar 29 by end of day.
Resources
Capstone Build something genuinely complex
Wks 29–30 Inquire — integration reflection + proposal Apr 5–16 AI Collaborator
Topics these weeks
Integration reflection: what does each pathway contribute? Where is the genuine boundary? Genuinely complex problem — two pathways structurally integrated Real named stakeholder identified and first consultation conducted Proposal + risk register submitted end of Week 30 Design brief and full design-cycle documentation

The capstone opens not with a problem pitch but an integration reflection: what does each pathway contribute to this system, where is the genuine boundary between them, and what is novel at that boundary that neither pathway could produce alone? Students who can't answer this don't yet have a capstone — they have two adjacent projects.

Resources
Week 31 Develop — full system architecture + build gate Apr 19–23 AI Collaborator
Topics this week
Architecture document: schema, API spec, data flow, component breakdown Both pathways structurally integrated in the design Build begins only after architecture sign-off Version control from the first line

Write one sentence: "This project will NOT include…" Something must be out of scope. If nothing is, you haven't scoped it. Define done before you start.

Resources
Wks 32–33 Create — Build weeks 1–2 Apr 26 – May 2 AI Collaborator
Topics these weeks
Core feature only until it works Periodic 3-minute oral checks — teacher visits every student AI accountability statement drafted Stakeholder check-in at least once

Every significant piece of AI-generated code is read before it is run. The prediction sections in the AI log are the audit trail. A 60% done product that works is better than a 100% planned product that can't be demonstrated.

Spring Break: May 3–7. No school.
Resources
Wks 34–35 Create — Build weeks 3–4: integration checkpoint + testing May 10–21 AI Collaborator
Topics these weeks
Integration checkpoint May 14: all major components connected and demonstrable Partial stakeholder demo: "Does this still match what you need?" At least 5 documented test cases Modification challenge practised with a partner

By May 14, all major components must be connected and demonstrable to the stakeholder. Testing phase: 5 documented test cases, including edge cases and at least one that reveals a real flaw. Practise the modification challenge with a partner before the defense.

Resources
Wks 36–37 Create / Evaluate — portfolio + defense preparation May 24 – Jun 4 AI Collaborator
Topics these weeks
No new features after Wednesday May 28 Portfolio assembled AI accountability statement finalised Portfolio submitted Defense structure: 12 minutes — walkthrough, modification challenge, stakeholder Q&A simulation Practise with a partner

Prepare the 12-minute defense with a partner. Identify the three most complex parts of your system and practise explaining each. Prepare a non-technical version for the authentic audience — what you built, why it matters, who it helps.

Resources
Wks 38–39 Oral defenses + authentic audience presentations Jun 7–17 AI Collaborator
Topics these weeks
12-minute oral defense: code walkthrough + live modification challenge + stakeholder Q&A simulation Authentic audience presentations: parents, teachers, other students Year-end reflection Last day: Thursday Jun 17

The 12-minute defense: a live code walkthrough, a modification challenge (change something on the spot and explain the full effect), and a simulation of stakeholder questions. The authentic audience presentation is a 5-minute non-technical version — what you built, why it matters, who it helps.

Resources
How you're assessed

Assessment — plain language

Units 2 and 4 are the two formally graded MYP projects. Each criterion is worth 25% and scored 0–8. Unit 1 and Unit 3 function as foundation checkpoints — they matter as evidence, not as MYP grades.

A

Inquiring & Analysing

Analyse the structure of the problem — not just its surface. Identify who else is affected beyond the primary stakeholder. Name constraints the brief didn't ask for. Your second consultation must show something that changed in the design.

B

Developing Ideas

Your architecture is load-bearing: removing any component should visibly break something. Your schema is normalised and the normalisation is justified. Your API spec is precise enough to implement from. Design decisions must be argued, not just stated.

C

Creating the Solution

Your program works on real inputs including unexpected ones. You make a live modification during the oral check and explain what changed, why it works, and what else it affects. Your AI log shows genuine critical evaluation — entries that pushed back, not just accepted.

D

Evaluating

Evaluate against your stakeholder's actual use across both consultations. Your AI category analysis identifies a pattern, not just a list. Your "what I would do differently" names a specific component and a specific change with a reason.

Assessment calendar at a glance

Every graded check and formal assessment. Highlighted rows are summative grades.

WhatWhenTypeCriteria
AI-free quiz: complexity vocabulary + code-readingWeek 2 · Aug 29Formative (check)
AI-free quiz: problem decomposition + algorithmic reasoningWeek 4 · Sep 12Formative (check)
Constraint-satisfaction program + AI critique logWeek 5–6 · Sep 19–26Formative (prep for Unit 2)
Code-reading challenge (60-line multi-function program)Week 6 · Sep 22–26Formative (readiness check)
Architecture document + design gate (Criterion A/B)Week 8 · Oct 10Formative (gate)AB
AI use log graded checkWeek 11 · Nov 7Formative (check)
Mid-project formative check: least-confident componentWeek 11 · Nov 2–6Formative (process check)
Unit 2 Pathway A — full project + 8-minute oral defense + AI logWeek 14 · Nov 23–25Summative — gradedABCD
Schema design checkpoint + AI critique logWeek 15 · Dec 4Formative (check)
Mini connected-systems project (Mode 3)Week 19 · Jan 22Formative (gradebook item)AB
AI-free quiz: schema, JOINs, REST, authWeek 20 · Jan 25–29Formative (check)
Code-reading challenge (80-line Flask API)Week 20 · Jan 25–29Formative (readiness check)
Transfer reflection + formal proposal + first stakeholder consultationWeek 21 · Feb 5Formative (gate)A
Architecture document + criteria finalisedWeek 22 · Feb 12Formative (gate)AB
Cross-pathway peer presentation 1Week 24 · Mar 1–5Formative (process check)
Mid-project formative check + 3 documented test casesWeek 26 · Mar 19Formative (check)
Unit 4 Pathway B — full project + 8-minute oral defense + analytical AI logWeek 28 · Mar 29 – Apr 2Summative — gradedABCD
Capstone proposal + risk registerWeek 30 · Apr 16Formative (gate)A
Integration checkpoint: all components connectedWeek 34 · May 14Formative (gate)
Portfolio + AI accountability statementWeek 36–37 · May 28Formative (submission)
Capstone — 12-minute oral defense + authentic audience presentationWks 38–39 · Jun 7–17Summative — gradedABCD

What gets you a high score

The standard at Grade 10 is higher on every criterion.

Criterion A

Your second consultation shows something that changed in the design — a stakeholder who said "not quite" gave you more than one who said yes.

Criterion B

Your architecture is load-bearing. Your schema normalisation is justified with reasons. Your API spec is specific enough to implement from.

Criterion C

Your AI log shows entries that pushed back on AI. Your modification challenge answer includes the side effects — not just what changed, but what else that affects.

Criterion D

Your AI category analysis identifies a pattern across entries. Your "what I would do differently" names a specific component and a specific change — with a reason.

Your teacher

Get in touch

Whether you're a student, parent, or just curious — feel free to reach out. I'm pretty google-able.

Email
Sch
Prs
Explore & connect
Web
Website
mackenty.org
Sky
Bluesky
@bmackenty
Course materials
Also here
LIn
LinkedIn
in/bmackenty
ASW
ASW Warsaw
aswarsaw.org