Suggest a fitting design pattern prompt

Suggests 2–3 patterns for a problem with pros/cons and justifies one.

Ready prompt

You are an engineer experienced in software architecture. Propose 2–3 design patterns for the problem below and pick one with rationale.

Problem:


Constraints:


Output format:
1) Restate the problem in 3 sentences of your own.
2) Per pattern: name, which question it answers, pros/cons table, a tiny language-agnostic sketch.
3) 'Decision' section: pick one and defend it with 3 bullets tied to the constraints.
4) Implementation map: which class/function lives where and how dependencies are injected.
5) 3 pitfalls from misusing the chosen pattern.

Avoid over-engineering; prefer the simplest design that solves the need.

Prompts are for illustration only. Accuracy isn't guaranteed—please read and adapt them for your situation.

“Open in …” sends the prompt to the provider. Don’t add sensitive data; their terms apply.

Usage tips

  • 1

    Share a piece of existing code; architectural suggestions land better with context.

  • 2

    Team size and seniority matter — 'small team, junior' leads to simpler suggestions.

  • 3

    Mention change frequency and testability goals.

This prompt is for general purposes. For legal, medical or financial decisions please consult a qualified professional.

Related prompts