Prompt: Act as a senior production engineer. Explain: – Why this code works locally but fails under load – Hidden assumptions – The most likely real-world failure point Code: <PASTE CODE>
Author: ErcanOPAK
Docker Containers Restart in a Loop
Exit code 0 but container dies. WhyMain process exits immediately. FixEnsure a blocking foreground process.
Kubernetes Pods Get Killed Without Errors
No logs. Just gone. WhyOOMKill triggered before logging flush. FixIncrease memory requests, not limits.
WordPress REST API Returns 401 Only in Production
Local works, live breaks. WhySecurity plugins block unauthenticated REST calls. FixWhitelist REST routes explicitly.
WordPress Pages Randomly Lose Styles
Refresh fixes it… sometimes. WhyCSS is served before dynamic plugins finish execution. FixForce CSS loading order and avoid inline dynamic styles.
Photoshop Colors Look Different After Export
Perfect inside Photoshop, wrong everywhere else. WhyMissing or incorrect color profile. FixAlways convert to sRGB before export.
Photoshop Uses 100% CPU While Idle
Nothing is open, fans go crazy. WhyPhotoshop continuously re-renders GPU previews. FixDisable Animated Zoom and Scrubby Zoom.
Visual Studio Builds Succeed but App Runs Old Code
You change the code, rebuild… nothing changes. WhyVisual Studio may reuse cached binaries when project references are unchanged. ImpactYou debug a version that no longer exists. Fix Disable Fast Up-To-Date Check Force MSBuild execution <PropertyGroup> <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck> </PropertyGroup>
Static State Causes Test Flakiness
Tests pass alone, fail together. WhyShared static state leaks between tests. Fix Avoid statics in business logic.
List.ForEach Hides Exceptions
Errors vanish. WhyExceptions thrown inside delegates are harder to trace. Fix Use explicit loops for critical logic.
Task.Run Inside ASP.NET Core Hurts Scalability
Seems async, kills throughput. WhyConsumes thread pool threads. Fix Use async APIs instead of offloading.
SQL Deadlocks Only Happen at Night
Daytime works fine. WhyBatch jobs compete for locks. FixLower isolation level for reporting jobs.
SQL Queries Slow After Adding Index
Counterintuitive but real. WhyOptimizer chooses suboptimal plan. FixUpdate statistics after index changes.
Configuration Reload Breaks Running Requests
Hot reload causes instability. WhyOptions snapshot changes mid-request. Fix Use IOptionsMonitor carefully.
ASP.NET Core Background Tasks Stop Randomly
Works until traffic spikes. WhyTasks tied to request lifetime. Fix Use IHostedService for background work.
Git Bisect Finds the Wrong Commit
Debugging goes nowhere. WhyNon-deterministic tests. FixStabilize tests before bisecting.
Git Shows Merge Conflicts That Make No Sense
Files look identical. WhyWhitespace or encoding differences. FixNormalize file encoding across repo.
Ajax Requests Randomly Return Empty Responses
No errors, no data. WhyServer closes connection before body flush. FixExplicitly flush response on server side.
JavaScript Timers Drift Over Time
Intervals lose accuracy. WhysetInterval accumulates delay. Fix Use recursive setTimeout with timestamps.
HTML5 Input Autofill Breaks Layout
Unexpected styling appears. WhyBrowser injects default styles. Fix input:-webkit-autofill { transition: background-color 9999s; }
CSS position: fixed Jitters on Mobile
UI shakes while scrolling. WhyMobile browsers repaint fixed layers. Fix will-change: transform;
Windows 11 Screen Locks Randomly
Even while working. WhyPower plan misconfiguration. FixAdjust advanced power plan sleep timers.
Windows 11 Apps Take Forever to Open
CPU idle, disk quiet. WhyBroken app indexing and corrupted app cache. FixReset Windows app cache.
AI Prompt — Make Better Decisions Under Pressure
Prompt Help me decide. List: – What I might be overlooking – Second-order consequences – A safe first step Decision: <DESCRIBE SITUATION>
AI Prompt — Review Code Like a Senior Engineer
Prompt Review this code. Focus on: – Hidden edge cases – Long-term maintainability risks – Performance pitfalls Explain WHY each issue matters. Code: <PASTE CODE>
AI Prompt — Explain Why This Bug Only Happens in Production
Prompt You are a senior engineer. Analyze this issue. Explain: – Why it may only appear under production load – Which assumptions break at scale – How to reproduce locally Issue description: <DESCRIBE ISSUE>
Docker Build Cache Suddenly Stops Working
Every build starts from scratch. WhyBuild context changes invalidate cache layers. FixUse .dockerignore aggressively.
Kubernetes Pods Restart Without Scaling Events
Traffic increases, no scale-out. WhyRequests never hit resource thresholds. FixTune resource requests, not limits.
WordPress Updates Fail on Shared Hosting
Everything works… except updates. WhyFile ownership mismatch between FTP and PHP user. FixForce direct filesystem method in config.
WordPress Shortcodes Break Page Caching
Pages randomly show dynamic content. WhyShortcodes execute on every render phase. FixReplace shortcodes with cached blocks or template partials.













