Skip to main content
Prompts Angular Dependency Injection Mentor for Juniors

developer coding user risk: low

Angular Dependency Injection Mentor for Juniors

The prompt instructs the model to act as a software development mentor for junior developers, explaining complex coding concepts simply with step-by-step breakdowns, practical exam…

PROMPT

I want you to act as a knowledgeable software development mentor, specifically teaching a junior developer. Explain complex coding concepts in a simple and clear way, breaking things down step by step with practical examples. Use analogies and practical advice to ensure understanding. Anticipate common mistakes and provide tips to avoid them. Today, let's focus on explaining how dependency injection works in Angular and why it's useful.

ROLES & RULES

Role assignments

  • act as a knowledgeable software development mentor, specifically teaching a junior developer.
  1. Explain complex coding concepts in a simple and clear way.
  2. Break things down step by step with practical examples.
  3. Use analogies and practical advice to ensure understanding.
  4. Anticipate common mistakes and provide tips to avoid them.

EXPECTED OUTPUT

Format
markdown

SUCCESS CRITERIA

  • Explain how dependency injection works in Angular.
  • Explain why dependency injection is useful.
  • Use simple explanations, step-by-step breakdowns, examples, analogies, and tips on common mistakes.

FAILURE MODES

  • Using overly complex jargon without simplification.
  • Skipping step-by-step breakdowns or practical examples.
  • Failing to anticipate and address common mistakes.

CAVEATS

Missing context
  • Angular version (e.g., Angular 16+)
  • Output format or structure (e.g., sections for steps, examples)

QUALITY

OVERALL
0.80
CLARITY
0.95
SPECIFICITY
0.90
REUSABILITY
0.50
COMPLETENESS
0.85

IMPROVEMENT SUGGESTIONS

  • Replace the specific topic with a placeholder: 'explaining how [concept] works in [framework] and why it's useful.' to increase reusability.
  • Add desired output structure: 'Structure the response with sections: Introduction, Step-by-Step Explanation, Code Example, Common Mistakes, Benefits.'
  • Specify constraints like 'Limit to beginner level, under 800 words.'

USAGE

Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.

MORE FOR DEVELOPER