☕ AI Prompting Demystified: A Developer's Humorous Guide

Ayush VermaAyush Verma
5 min read

There are two things developers swear by: Chai and Ctrl+Z. But these days, there's a third thing sneaking into the sacred dev ritual—AI prompting. And if you've ever found yourself yelling "Why are you like this, ChatGPT?" into the void, this blog is for you.

“Translate this”
“Act like Sherlock”
“Summarize in 3 points”

Let’s break down different prompting techniques with a spoonful of sugar and sarcasm (and yes, masala chai is assumed).

1. Zero-Shot Prompting

AKA: “Just figure it out, bro.”

You: “Translate this sentence into French.”
AI: “Voici la traduction.”

No context. No examples. Just vibes. It’s like giving your friend a guitar and saying, “Play ‘Hotel California’,” without telling them what a chord is. And somehow… it still works. Sometimes.

🧠 Use when:

You trust the model’s IQ more than your college group project partner.


2. Few-Shot Prompting

AKA: “Here’s how we do things around here.”

You: “Translate this sentence into French: ‘Hello, how are you?’ = ‘Bonjour, comment ça va?’ Now translate: ‘Good morning.’”
AI: “Bonjour.”

You’re the strict tuition teacher giving two examples before flinging the homework across the table. The AI picks up the pattern (hopefully) and carries on like a slightly better-behaved intern.

🧠 Use when:

Your AI needs a little “starter pack” to not embarrass you.


3. Chain-of-Thought Prompting

AKA: “Yeh toh bada sankat hai... let’s think step by step.”

You: “If Raju has 3 bananas and gives 1 to Shyam, how many are left?”
AI: “Raju starts with 3. Gives 1 to Shyam. That leaves 2. Final answer: 2.”

This is the "Board Exam ke pehle” strategy. Don’t just give the answer—show the working, beta! It helps the model slow down and not hallucinate its way into giving you “banana = potato” logic.

🧠 Use when:

You want accuracy, and you're suspicious of AI's tendency to go full Bollywood plot twist.


4. Self-Consistency Prompting

AKA: “Let me think about that again... and again... and again.”

You: “Hey, solve this math problem.”
AI (generates 5 answers): 2, 2, 2, 8, 2
AI (shrugging like it’s your chaiwala forgetting sugar): “The answer is probably 2.”

Basically, the model tries multiple approaches and chooses the answer it lands on the most. Think of it like polling your friends for dinner plans and going with the least chaotic option.

🧠 Use when:

You don’t mind a bit of democratic decision-making… among robots.


5. Instruction Prompting

AKA: “Do what I say, not what you feel like.”

You: “Summarize this blog in 3 bullet points. No emojis. No fluff. Be serious.”
AI: “Yes, sir.”

Here, you’re the boss. You tell the AI exactly how to behave. This works well when you’re done with its usual tendency to act like a Shakespearean drama queen.

🧠 Use when:

You’ve had enough of vague answers and want your AI to behave like it’s in a job interview.


6. Direct Answer Prompting

AKA: “No bakwaas. Just answer.”

You: “Capital of France?”
AI: “Paris.”

You didn’t ask for the history of France, Napoleon’s military exploits, or the Eiffel Tower’s height. Just answer. Quick and clean. Like your chai without elaichi (controversial, but okay).

🧠 Use when:

You’re in a hurry and don’t need a TED Talk.


7. Persona-based Prompting

AKA: “Today, you’re Gordon Ramsay. Now insult my code.”

You: “Act like a grumpy senior dev and review my JavaScript.”
AI: “Who wrote this spaghetti? A toddler with a keyboard?”

With persona-based prompting, you give your AI a character to play. Want it to act like Sherlock? Or your nosy neighbor? Go wild.

🧠 Use when:

You’re bored or want some spice in your AI interactions. 🌶️


8. Role-Playing Prompting

AKA: “Let's play pretend.”

You: “You're a recruiter. Interview me for a frontend dev role.”
AI: “Tell me about a time you screamed at webpack config.”

This one's gold for simulations—mock interviews, customer service chats, or even practicing how to break up with your AI. (No hard feelings.)

🧠 Use when:

You’re practicing real-life scenarios and your cat is tired of being your role-play partner.


9. Contextual Prompting

AKA: “Here's the backstory, now don’t mess it up.”

You: “Given that I’m a content creator targeting college students, write a funny Instagram caption for this meme.”

This is like briefing your friend before they meet your parents—“Don’t talk about Goa. Don’t mention the bike accident. Compliment mom’s cooking.”

🧠 Use when:

You need smarter, more informed responses that won’t get you canceled.


10. Multimodal Prompting

AKA: “Read this, look at this, and make sense of it all.”

You: “Here’s a meme. Here’s the caption. Make a tweet thread explaining the concept of recursion.”

Text + image + context = mind blown level of prompting. It’s like chai, pakora, and rain—all at once.

🧠 Use when:

You’ve got multiple types of data and one bored, underpaid robot.


Final Sip ☕

AI prompting is just like making the perfect cup of chai. Everyone has a method. Some throw in ingredients without mercy (Zero-shot), others measure with love and precision (Few-shot), and some just ask their dadi to make it (Instruction prompting, basically).

Whichever way you go, just remember: a good prompt isn’t about being fancy—it’s about being clear. And maybe a little sassy.

Now go forth and prompt like the caffeinated genius you are. Just don’t forget to refill your chai—the AI doesn’t judge, but dehydration is real.

0
Subscribe to my newsletter

Read articles from Ayush Verma directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ayush Verma
Ayush Verma

.