Money Rounding Errors: Allocate the Remainder, Don't DivideHere's a query worth running against your production database this week: -- Orders whose installments no longer add up to the order total SELECT o.id, o.total_minor, SUM(i.amount_minor) AS installment13h ago · 11 min readsimplyexplained.hashnode.dev
Why AI Coding Assistants Suggest Deprecated APIs (and How to Stop It)Same seven code models. Same eight Python libraries. Same 145 deprecated APIs. In one setup, the models reached for the deprecated API in 70 to 90 percent of the relevant completions. In the other, 9 14h ago · 9 min readsimplyexplained.hashnode.dev
Why Your AI Agent Calls the Wrong Tool (and How to Test Tool Routing)TL;DR: An AI agent doesn't look tools up by name. On every turn it reads every tool description and picks the closest match for the request. That makes tool selection a relative decision, so adding on36KGD20h ago · 9 min readsimplyexplained.hashnode.dev
Expert Personas in Prompts: What They Change and What They Don'tTry this before you read anything else. In a repo that ships an LLM feature, run: grep -rniE "you are (a|an) " --include="*.py" --include="*.ts" --include="*.txt" --include="*.md" --include="*.yaml" .2d ago · 11 min readsimplyexplained.hashnode.dev
Cron Job Running Twice (or Not at All)? Fix the Job, Not the ScheduleAnswer three questions about the most important scheduled job you run: If it doesn't run tonight, who notices? If it runs twice, what happens twice? If it starts three hours late, which data moves? 1K2d ago · 10 min readsimplyexplained.hashnode.dev