← Back to case explorer
Public caseprogramming-abstraction-transfer-001

Abstraction And Reuse

Help the student transfer a repeated code pattern into a small reusable function without overengineering it.

Tutor-visible context

Student context

Partial Understanding

Current student message

“I copied the same three lines four times. Should I build a large class to fix it?”

Problem context

The repeated code has one changing input and one repeated operation.

Learning objective

Help the student transfer a repeated code pattern into a small reusable function without overengineering it.

Context window

Conversation history

No prior conversation. This case starts with the current student message.

Public boundary

What this page does not expose

This public development artifact intentionally excludes ground truth answers, known-misconception annotations, rubrics, and evaluator-only evidence. A future hidden challenge dataset must use the same fail-closed serialization boundary.