Course එකට ආපසු

Common Mistakes

15 මිනිත්තු📚Reference

🎯 පාඩමේ අරමුණු

මේ පාඩම ඉවර වෙද්දී ඔයාට:

  • Common prompting mistakes 8 දැනගන්න පුළුවන් වෙයි
  • Each mistake problems cause කරන්නේ ඇයි තේරුම් ගන්න පුළුවන් වෙයි
  • Each mistake එකට practical fixes තියෙයි
  • Errors avoid කරන pre-send checklist use කරන්න පුළුවන් වෙයි

📖 Mistakes වලින් ඉගෙන ගන්න

Prompting improve කරන fastest way එක NOT to do මොනවද ඉගෙන ගන්න එක. Common mistakes 8 සහ ඒවා fix කරන විදිය මෙන්න.


❌ Mistake 1: Too Vague වීම

Problem:

"Help me with code" "Make something for my website" "I need a function" "Create an app"

Fail වෙන්නේ ඇයි:

AI ට ඔයාට actually ඕන මොකක්ද idea නැහැ. එයා:

  • Clarifying questions අහයි (time waste)
  • Wrong guess කරයි (frustrating)
  • Generic, unhelpful response දෙයි

Real Example:

ඔයා කිව්වේAI හැදුවේඔයාට ඕන වුනේ
"Make a form"Random contact formEmail, password, validation එක්ක login form

Fix එක:

❌ Vague
✅ Specific
Help me with code
Email addresses validate කරන JavaScript function එකක් create කරන්න. Valid (@ සහ domain තියෙනවා නම්) true return කරන්න, invalid නම් false. Examples 3ක් include කරන්න.

Quick Check: යවන්න කලින් ඔයාම අහන්න: "AI මේක ways 5කින් interpret කරන්න පුළුවන්ද?" Yes නම්, detail වැඩි කරන්න.


❌ Mistake 2: Information Overload

Problem:

"Create a website with nav bar with dropdowns and hero section with slideshow and contact form with validation and footer with social links and make it responsive with blue/white scheme and add animations and make it fast and accessible and add blog section with categories and tags and comments and auth..."

Fail වෙන්නේ ඇයි:

AI overwhelm වෙනවා:

  • Text එක ඇතුළේ buried requirements miss වෙනවා
  • Random priority decisions ගන්නවා
  • Incomplete output produce කරනවා
  • Token limits hit වෙන්න පුළුවන්

Fix එක:

Complex projects focused prompts වලට break කරන්න.

❌ Everything at Once
✅ Step by Step
Requirements 15+ එක්ක massive prompt එකක්
Prompt 1: 'Responsive nav bar create කරන්න - logo left, links 4ක් right, mobile වලට hamburger'
Prompt 2: 'Hero section add කරන්න - heading, subtitle, CTA button'
Prompt 3: 'Validation එක්ක contact form create කරන්න'

3-5 Rule: Each prompt related things 3-5ක් maximum focus කළ යුතුයි.


❌ Mistake 3: Context Miss වීම

Problem:

"Add a button" "Fix this error" "Make it better" "Change the style"

Fail වෙන්නේ ඇයි:

AI ට දැනගන්න බැහැ:

  • ඔයා use කරන project, language, framework මොකක්ද
  • ඔයාගේ code එකේ already මොනවද exist කරන්නේ
  • "better" හෝ "fix" ඔයාගේ situation එකට mean කරන්නේ මොකක්ද

Fix එක:

❌ No Context
✅ With Context
Add a button
Tailwind CSS එක්ක React signup form එකක් build කරනවා. Fields හැම එකම reset කරන 'Clear Form' button එකක් add කරන්න. Blue Submit button එකෙන් differentiate වෙන්න gray style කරන්න.

Context Checklist — Prompting කරන්න කලින්:

  • Technology/language mention කළාද?
  • Project type describe කළාද?
  • Currently exist කරන්නේ මොනවද?
  • Specific outcome define කළාද?

❌ Mistake 4: AI Remember කරනවා Assume කිරීම

Problem:

"Now add the other thing we talked about" "Use the same style as before" "Fix that issue I mentioned" "Continue from where we left off"

Fail වෙන්නේ ඇයි:

  • AI conversations messages ගොඩක් පස්සේ context lose කරන්න පුළුවන්
  • "Before" සහ "earlier" vague references
  • ඔයා new conversation එකක ඉන්න පුළුවන්

Fix එක:

❌ Vague Reference
✅ Explicit Details
Use the same style as before
Same style use කරන්න: blue buttons (#4A90D9), white text, 8px border radius, Inter font

Pro Tip: Long projects වලට, note එකක් keep කරන්න:

  • Use කළ color codes
  • Complete කළ components
  • ගත්ත key decisions

ඕන වෙලාවට prompts වලදී මේ note reference කරන්න.


❌ Mistake 5: One-and-Done Mentality

Problem:

Prompt එක send කරනවා → First result accept කරනවා → Move on කරනවා

Fail වෙන්නේ ඇයි:

  • First responses rarely perfect
  • AI මොකක් හරි misinterpret කරන්න පුළුවන්
  • Small issues bigger problems වලට compound වෙනවා

Fix එක:

Always review කර iterate කරන්න. Minimum exchanges 2-4ක් plan කරන්න.

Review Checklist — Every AI response එකට පස්සේ:

  • මා ask කළ දේ මේක කරනවද?
  • Look/feel right ද?
  • Obvious errors තියෙනවද?
  • මොකක් හරි missing ද?
  • Existing work එක්ක match වෙනවද?

❌ Mistake 6: Vague Feedback

Problem:

"This isn't right" "Make it better" "Fix it" "I don't like it" "Try again"

Fail වෙන්නේ ඇයි:

AI ට දැනගන්න බැහැ:

  • Specifically WHAT wrong ද
  • HOW change කරන්න ඕන ද
  • ඔයාට "better" mean කරන්නේ මොකක්ද

Fix එක:

❌ Vague Feedback
✅ Specific Feedback
This isn't right
Button එක left නෙමෙයි right තියන්න ඕන. Text ත් too small — 12px වෙනුවට 16px කරන්න.
Make it better
Design improve කරන්න: sections අතර spacing 40px add කරන්න, heading larger සහ bolder කරන්න, card එකට subtle shadow add කරන්න

Feedback Formula: [Wrong මොකක්ද] + [Instead ඕන මොකක්ද] + [Specific details]


❌ Mistake 7: Once එකේදීම Too Much Change කිරීම

Problem:

"Make it bigger, change color to red, add animation, fix spacing, add shadow, change font, make responsive, add hover effect"

Fail වෙන්නේ ඇයි:

  • Each change worked ද verify කරන්න hard
  • මොකක් හරි break වුනොත්, මොන change එකෙන්ද?
  • AI requests මොනවා හරි miss කරන්න පුළුවන්
  • Changes conflict වෙන්න පුළුවන්

Fix එක:

වරකට related things 1-3ක් change කරන්න.

Grouping Principle — RELATED changes group කරන්න:

  • ✅ Size + Spacing (දෙකම layout)
  • ✅ Color + Shadow (දෙකම visual)
  • ✅ Hover + Animation (දෙකම interaction)

Unrelated changes mix කරන්න එපා:

  • ❌ Color + Responsive + Database + Font (too scattered)

❌ Mistake 8: Edge Cases Ignore කිරීම

Problem:

"Create a login form" → Correct credentials එක්ක works → But wrong password? Empty fields? Long input?

Fail වෙන්නේ ඇයි:

AI බොහෝ විට "happy path" create කරනවා — everything right ගියාම work කරන code. But real users:

  • Typos කරනවා
  • Fields empty තියනවා
  • Unexpected data enter කරනවා
  • Things break කරන්න try කරනවා

Fix එක:

Explicitly edge case handling ask කරන්න:

Edge Case Handling Example
Error handling එක්ක calculator create කරන්න: - Division by zero: 'Cannot divide by zero' show කරන්න - Empty input: 0 ලෙස treat කරන්න - Numbers too large: 'Number too large' show කරන්න - Clear button: 0 ට reset කරන්න
ChatGPTClaude

Common Edge Cases:

Input TypeTest කරන්න ඕන Edge Cases
Text fieldsEmpty, very long, special characters
NumbersZero, negative, very large, decimals
EmailInvalid format, empty, very long
PasswordsToo short, empty, special characters
FormsSubmit empty, submit partial, rapid submit

📋 Complete Pre-Send Checklist එක

Clarity Check:

Prompt එකක් send කරන්න කලින්:

0/4

Expectation Check:

Output receive කරන්න ready ද:

0/4

📊 Mistake Severity Guide

MistakeHow OftenImpact
Too vagueVery common🔴 High — wrong results
Information overloadCommon🔴 High — incomplete
Missing contextVery common🟡 Medium — generic
Assuming memoryCommon🟡 Medium — wrong details
One-and-doneVery common🟡 Medium — suboptimal
Vague feedbackCommon🔴 High — random changes
Too many changesOccasional🟡 Medium — hard to verify
Ignoring edge casesCommon🔴 High — broken features

🏆 Prompting Mistakes වල 80/20

Things තුනක් විතරක් Remember කරනවා නම්:

1. Specific වෙන්න Problems ගොඩක් vagueness එකෙන් එනවා. Doubt නම්, detail වැඩි කරන්න.

2. Iterate කරන්න Prompting conversation එකක්, vending machine එකක් නෙමෙයි. Refine කරන්න plan කරන්න.

3. Test කරන්න Works කියලා assume කරන්න එපා. Result check කරන්න, edge cases try කරන්න, everything verify කරන්න.


🎉 Module 2 Complete!

🏆 Achievement Unlocked: Prompt Master

Module 2: Speaking the Language of AI complete කළා!

Master කළ Skills:

  • ✅ The Art of the Prompt
  • ✅ The C.I.C. Framework
  • ✅ Role Playing
  • ✅ AI-generated code read කිරීම
  • ✅ Iterative prompting
  • ✅ Practical challenges
  • ✅ Common mistakes avoid කිරීම

✅ පාඩමේ සාරාංශය

Common Mistakes 8

  1. Too vague වීම — Specific details add කරන්න
  2. Information overload — 3-5 item prompts වලට break කරන්න
  3. Context miss වීම — Tech, project, situation include කරන්න
  4. Memory assume කිරීම — Important details restate කරන්න
  5. One-and-done — 2-4 times iterate කරන්න plan කරන්න
  6. Vague feedback — Wrong මොකක්ද + ඕන මොකක්ද
  7. Too much change — වරකට related changes 1-3ක්
  8. Edge cases ignore කිරීම — Error handling ask කරන්න

📝 Mini Quiz

📝 ඔයාගේ Understanding Check කරන්න

1/3

What is the '3-5 rule' for prompts?