High temperature ≠ better answers. ✅ Rule Low → factual High → creative
Author: ErcanOPAK
AI — Prompt Length Affects Model Reasoning Quality
Too long = diluted intent. ✅ Tip Use structured prompts, not massive text dumps.
Visual Studio — IntelliSense Uses Different Compiler
Code builds but IntelliSense errors appear. 🧠 Reason Different language service pipeline. ✅ Fix Restart language service or clear .vs folder.
WordPress — Heartbeat API Triggers Admin CPU Spikes
Runs every 15 seconds by default. ✅ Fix Throttle or disable outside editor pages.
Windows 11 — Clipboard History Can Leak Sensitive Data
Passwords copied once… stay forever. ✅ Fix Disable clipboard history or clear frequently.
Windows 11 — Core Isolation Slows Virtualization
Memory integrity adds overhead. ✅ Tip Disable on dev machines if not required.
AJAX — 204 Responses Break JSON Parsing
204 No Content has no body. ❌ Crash response.json() ✅ Fix Check status before parsing.
JavaScript — Object.freeze() Is Shallow
Nested objects remain mutable. ✅ Fix Use deep-freeze utilities if immutability matters.
HTML5 —
Default behavior surprises many. ✅ Fix Always set: <button type=”button”>
CSS — gap Works for Flexbox (Not Just Grid!)
Many devs still use margins. display: flex; gap: 12px; Cleaner, safer layouts.
.NET Core — ProblemDetails Improves API Debugging
Standardized error responses save hours. ✅ Benefit Consistent client handling Better logging
.NET Core — Middleware Exceptions Bypass Filters
Exceptions thrown in middleware skip MVC filters. ✅ Fix Handle critical errors inside middleware itself.
SQL — ORDER BY Without Index Causes TempDB Spikes
Large sorts spill to TempDB. ✅ Fix Create supporting indexes for ORDER BY columns.
SQL — ISNULL() Can Break Index Usage
WHERE ISNULL(Deleted, 0) = 0 ❌ Effect Index seek becomes scan. ✅ Fix Rewrite conditions without functions.
C# — List.ForEach() Is Slower Than foreach
It allocates a delegate and blocks break/continue. ✅ Prefer foreach (var item in list) { }
C# — DateTimeKind.Unspecified Breaks Serialization
Unspecified kind leads to wrong conversions. ✅ Rule Always specify: DateTime.SpecifyKind(date, DateTimeKind.Utc)
C# — record Types Can Accidentally Leak Data
record auto-generates ToString(). public record User(string Email, string Password); ❌ Risk Sensitive data may appear in logs. ✅ Fix Override ToString() or avoid records for secrets.
The Time Machine: git reflog
The Problem: You did a git reset –hard and accidentally deleted code you actually needed. You think it’s gone forever. The Fix: Run git reflog. Git keeps a log of every movement of the HEAD, even commits you deleted. Find the ID of the state before you messed up and run git reset –hard <ID>. […]
Generative Fill is Magic
The Problem: You have a photo that is cropped too tightly, and you need to extend the background, but cloning is tedious. The Fix: Increase the canvas size, select the empty area with the Marquee tool, and click Generative Fill (leave the prompt empty). AI will invent the rest of the background perfectly matching the […]
AI – Chain of Thought Prompting
The Problem: You are asking AI a complex coding architecture question, but getting generic or wrong answers. The Fix: Ask the AI to “Think step by step” or “Outline your reasoning before writing the code.” This forces the model to logically structure its answer, resulting in much higher quality code generation.
Generate Unit Tests with AI
The Problem: You wrote the logic, but writing 10 different unit tests for edge cases is boring and time-consuming. The Fix: Highlight your function and ask your AI assistant: “Write xUnit tests for this method covering null inputs, empty strings, and happy paths.” It does 90% of the boilerplate work for you.
AI – The “Explain Like I’m 5” Regex Trick
The Problem: You found a complex Regex pattern online, but you don’t know if it’s safe or exactly what it does. The Fix: Paste the regex into ChatGPT or Copilot with the prompt: “Explain this regex to me step-by-step.” It breaks down every symbol, ensuring you don’t introduce a vulnerability.
Multi-Line Editing
The Problem: You need to change public string to public int on 20 different lines. The Fix: Hold Alt and drag your mouse cursor vertically (or Shift + Alt + Down Arrow). You can now type on multiple lines simultaneously.
The White Screen of Death Fix (WP_DEBUG)
The Problem: Your WordPress site is showing a blank white screen, and you have no idea which plugin caused it. The Fix: Open your wp-config.php file via FTP and change the debug settings to log the error to a file instead of crashing silently. define( ‘WP_DEBUG’, true ); define( ‘WP_DEBUG_LOG’, true ); define( ‘WP_DEBUG_DISPLAY’, false […]
Extract Text from Anywhere (Snipping Tool)
The Problem: You have an image or a PDF where you can’t select the text, but you need to copy it. The Fix: Use the Snipping Tool (Win + Shift + S). Take a screenshot, open it, and click the “Text Actions” button. It uses AI to extract all text so you can copy it […]
Clipboard History (Win + V)
The Problem: You copied a snippet, then accidentally copied something else, losing the original snippet forever. The Fix: Turn on Clipboard History. Press Win + V instead of Ctrl + V. You can see and paste the last 25 items you copied (text or images).
Modern Fetch with Async/Await
The Problem: You are stuck in “Callback Hell” or complex Promise chains using old XHR or jQuery. The Fix: Use modern fetch inside an async function. It reads like synchronous code. async function getData() { try { const response = await fetch(‘https://api.example.com/data’); const data = await response.json(); console.log(data); } catch (error) { console.error(‘Fetch failed:’, error); […]
Optional Chaining (?.)
The Problem: Your console is full of “Uncaught TypeError: Cannot read property ‘x’ of undefined” because an API response was missing data. The Fix: Use ?. to safely access nested properties. It short-circuits to undefined instead of crashing. // Old risky way const street = user && user.address && user.address.street; // Life-saver way const street […]
Native Modals with
The Problem: You are importing a massive JavaScript library just to show a simple popup modal. The Fix: HTML5 now has a native <dialog> element with built-in accessibility and backdrop support. <dialog id=”myDialog”> <p>This is a native modal!</p> <button onclick=”document.getElementById(‘myDialog’).close()”>Close</button> </dialog> <button onclick=”document.getElementById(‘myDialog’).showModal()”>Open Modal</button>
The aspect-ratio property
The Problem: Images or video embeds cause “Layout Shift” (jumping content) while loading because the browser doesn’t know their height yet. The Fix: Use aspect-ratio. No need for the old “padding-bottom percentage” hack. .card-image { width: 100%; aspect-ratio: 16 / 9; /* Automatically reserves the space */ object-fit: cover; }











