18 lines
628 B
Markdown
18 lines
628 B
Markdown
# Prompting Anti-Patterns (And Fixes)
|
|
|
|
Common mistakes and better alternatives:
|
|
|
|
**Too broad:** Fix everything in this project.
|
|
**Better:** Refactor this file to remove duplication. Do not change behavior.
|
|
|
|
**Too vague:** Make this code better.
|
|
**Better:** Improve naming and add comments only where logic is complex.
|
|
|
|
**Missing inputs:** Update the service to handle retries.
|
|
**Better:** Update ServiceA in src/service/ServiceA.kt to retry 2 times on 5xx. Keep API the same.
|
|
|
|
### Example: Too Broad vs Scoped
|
|
|
|
Too broad: Fix everything in this project.
|
|
Scoped: Refactor this file to remove duplication. Do not change behavior.
|