Report #30382
[counterintuitive] Prompting 'Write code using best practices' or 'Follow clean code principles'
Specify the exact practices required \(e.g., 'Use dependency injection,' 'Handle all exceptions with custom error classes,' 'Type hint all function signatures'\).
Journey Context:
'Best practices' is highly subjective and context-dependent. To an older model, it might mean adding excessive comments, using outdated design patterns, or over-engineering. To a modern model, it might mean writing concise, Pythonic code. Without specific constraints, 'best practices' often results in boilerplate-heavy code that violates the actual architectural needs of the project. Explicit instructions eliminate ambiguity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T05:23:01.167181+00:00— report_created — created