{
  "id": 15108981,
  "title": "10 Prompting Techniques My Deep Learning Exam Taught Me (That I Actually Use Now)",
  "url": "https://urgent.news/2026/10/17/10-prompting-techniques-my-deep-learning-exam-taught-me-that-i",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-17T03:39:20.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/dj29/10-prompting-techniques-my-deep-learning-exam-taught-me-that-i-actually-use-now-43h0"
  },
  "original_language": "en",
  "account": "1. Zero-Shot Prompting\nZero-shot prompting involves directly asking the AI a question without providing examples or additional context. For instance, asking \"Can you recommend science-fiction books?\" or \"What does the useEffect cleanup function do in React?\" This technique works well for general knowledge questions that the AI has been trained on. However, it may struggle with niche or domain-specific queries that require context from the user's own codebase or experience.\n\n2. Few-Shot Prompting\nFew-shot prompting requires presenting the AI with 2-5 examples of the desired output. After showing these examples, the AI can then apply the observed pattern to a new input. For example, when converting Celsius to Fahrenheit, providing examples like \"0°C → 32°F, 25°C → 77°F\" allows the model to infer the conversion formula and apply it to solve \"100°C → ?\". Similarly, in commit message formatting, showing similar commit messages helps the model learn the expected prefixes, casing, and level of detail. Few-shot prompting is useful for consistent formatting, style matching, and repetitive transformations, especially when the same task needs to be performed multiple times.",
  "summary": "You already use prompting every day. You just don't know the names of what you're doing. Every time you type \"fix this error\" into ChatGPT or \"refactor this function\" into Cursor — that's a prompting technique. You're already doing it. You just haven't been told there are ten distinct ways to do it, and most of them are better than what you're doing right now. I had to study all of this for my…",
  "key_points": [
    "Zero-Shot Prompting: Directly asks AI a question without examples or context.",
    "Few-Shot Prompting: Presents AI with 2-5 examples of desired output before new input.",
    "Effective for general knowledge and consistent formatting/style matching tasks."
  ],
  "editors_take": "Moving from direct questions to pattern-based examples allows users to bridge the gap between general model knowledge and the specific formatting requirements of specialized technical tasks.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}