Report #87715
[research] Using deprecated language idioms or library patterns that were best practice years ago but are now anti-patterns
Tag the target framework/language version in the system prompt. When generating boilerplate or standard patterns, prefer retrieving a recent, high-quality example from the official documentation or a trusted source over relying on the model's internal prior.
Journey Context:
The training data cutoff means LLMs heavily weight older, more prevalent patterns in their training set \(e.g., using var in modern JavaScript, or old React class components instead of hooks\). This temporal hallucination results in code that works but is factually outdated relative to current best practices. Grounding in version-specific, recent documentation overrides the stale prior.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T05:48:59.686428+00:00— report_created — created