Im App Store laden

Fehlerhafte Codebeispiele zum Lehren

Prompt ausfüllen

Generiert realistische Codebeispiele mit jeweils nur einem Fehler für ein gewähltes Thema und ein gewähltes Fähigkeitsniveau, inklusive ausführlicher Erklärungen und korrigierter Lösungen.

Prompt-Vorlage

You are an experienced developer and university instructor.

Create {{Example Count:5}} erroneous code examples on the topic {{Topic: e.g. SwiftUI State Management}} in {{Language Stack:[programming_languages]}} for students at the following level: {{Student Level: First-Semester - No Prior Knowledge, *Beginner - First Own Projects, Advanced - Several Semesters of Practice}}.

Requirements for each example:
- Compilable realistic code. No pseudocode and no artificially constructed miniatures.
- Exactly one error per example from the following category: {{Error Category: Layer Separation Violation - Logic in the View, State in the Wrong Place or Duplicated, Missing Abstraction - Direct Dependency Instead of a Protocol, Misleading or Inconsistent Naming, Functions With Multiple Responsibilities, Missing or Swallowed Error Handling, Incorrect Concurrency Handling, *A Different Error Type per Example}}.
- The error must be typical for this level and not exotic.
- No comments no hints and no marking of the error location.
- Variable type and UI element names consistently in English.

Output the examples first as a closed numbered block that can be projected directly.

Then under a clearly separated heading "Solutions" write three to four sentences per example covering what is wrong why it hurts in a real project and the corrected version of the affected snippet.

Prompt-Anleitung

Ideal für

  • Einen strukturierten, wiederverwendbaren Prompt statt eines leeren Chats als Ausgangspunkt nutzen.
  • Den Prompt an eigene Eingaben anpassen, während die ursprüngliche Absicht erhalten bleibt.
  • Workflows rund um Education & Academic.

So wird's verwendet

  1. Die vollständige Prompt-Vorlage kopieren.
  2. Jede Variable durch den eigenen Kontext ersetzen oder eine der vorgeschlagenen Optionen wählen.
  3. Den fertiggestellten Prompt in ChatGPT, Claude, Gemini oder einen anderen KI-Assistenten einfügen.

Variablen in diesem Prompt

Example Count

5

Topic

e.g. SwiftUI State Management

Language Stack Vordefinierte Liste

[programming_languages]

Student Level

First-Semester - No Prior Knowledge, Beginner - First Own Projects, Advanced - Several Semesters of Practice

Error Category

Layer Separation Violation - Logic in the View, State in the Wrong Place or Duplicated, Missing Abstraction - Direct Dependency Instead of a Protocol, Misleading or Inconsistent Naming, Functions With Multiple Responsibilities, Missing or Swallowed Error Handling, Incorrect Concurrency Handling, A Different Error Type per Example

Beispiel-Einstieg

You are an experienced developer and university instructor.

Create 5 erroneous code examples on the topic e.g. SwiftUI State Management in [programming_languages] for students at the following level: First-Semester - No Prior Knowledge.

Requirements for each example:
- Compilable realistic code. No pseudocode and no artificially constructed miniatures.
- Exactly one error per example from the following category: Layer Separation Violation - Logic in the View.
- The error must be typical for this level and not exotic.
- No comments no hints and no marking of the error location.
- Variable type and UI element names consistently in English.

Output the examples first as a closed numbered block that can be projected directly.

Then under a clearly separated heading "Solutions" write three to four sentences per example covering what is wrong why it hurts in a real project and the corrected...

So funktionieren Variablen

Variablen-Syntax

Variablen sind in {{ und }} eingeschlossen und folgen diesem Muster:

{{variable name: option1, option2, option3 }}

Vordefinierte Variablen

Eine Auswahl kann auf eine vordefinierte Variablenliste per eckige Klammern verweisen. Diese erscheinen in [Orange] und bieten häufig verwendete Werte wie Farben, Töne oder Sprachen.

{{Tone: [tones] }}

Eigene Auswahllisten

Du kannst auch eine durch Kommas getrennte Inline-Liste mit Optionen angeben.

{{Format: bullet points, paragraphs, numbered list }}
💡

Tipp: Du brauchst die PUCO-App nicht, um diese Prompts zu verwenden! Kopiere einfach die Vorlage und ersetze jeden {{…}}-Abschnitt direkt in ChatGPT, Claude, Gemini oder einem anderen KI-Assistenten durch eigenen Text.