惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
T
Troy Hunt's Blog
L
Lohrmann on Cybersecurity
S
Schneier on Security
Spread Privacy
Spread Privacy
WordPress大学
WordPress大学
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
G
GRAHAM CLULEY
博客园 - 【当耐特】
有赞技术团队
有赞技术团队
SecWiki News
SecWiki News
博客园 - 叶小钗
博客园 - Franky
V
Vulnerabilities – Threatpost
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
O
OpenAI News
小众软件
小众软件
V
V2EX
N
News and Events Feed by Topic
T
The Exploit Database - CXSecurity.com
博客园 - 三生石上(FineUI控件)
The Hacker News
The Hacker News
Project Zero
Project Zero
The Last Watchdog
The Last Watchdog
雷峰网
雷峰网
Google Online Security Blog
Google Online Security Blog
T
Tailwind CSS Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
量子位
D
Docker
Recent Announcements
Recent Announcements
T
Threat Research - Cisco Blogs
P
Privacy International News Feed
爱范儿
爱范儿
PCI Perspectives
PCI Perspectives
Jina AI
Jina AI
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
大猫的无限游戏
大猫的无限游戏
V2EX - 技术
V2EX - 技术
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Register - Security
The Register - Security
T
The Blog of Author Tim Ferriss
博客园 - 聂微东
Cloudbric
Cloudbric
S
Security Affairs
F
Fortinet All Blogs

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
The 80/20 Rule of AI Code: Why Production Takes 80% of Your Time
Abdul Rehman · 2026-06-25 · via DEV Community

I watched a GPT-4 function call that worked perfectly in the playground silently fail in production. The output was valid JSON. The structure was correct. But the content was a hallucination. It took me two hours to notice the problem, and another day to build a guardrail that caught it.

That moment taught me something I now tell every founder I work with. The first 20% of an AI feature takes 20% of the time. The last 20% takes 80%. Not because the code is hard. Because the code is the easy part. The hard part is everything around it.

I've built production AI pipelines at scale. A job board platform that scores 10,000+ listings daily with LLM function calling. An AI resume tailor that generates dozens of tailored resumes in a single session. A meeting assistant with real-time transcription. Every single project followed the same pattern. The demo worked in an hour. The production system took weeks.

Here's what that last 80% actually costs.

The Prompt That Broke on Real Data

Your first prompt will work on your test cases. It will fail on real data.

On the job board platform, I wrote a GPT-4 prompt to extract structured fields from raw job descriptions. Company name, title, location, skills. The playground gave me perfect results. I deployed it.

Within an hour, the pipeline started producing garbage. One listing had a title that was 400 characters long because the ATS source concatenated the job title with the department. Another had a location field that said "Remote - Must be willing to travel to Chicago quarterly." My prompt assumed location was a single city name.

The fix wasn't a better prompt. It was a layered approach. I added input validation before the LLM call, truncating fields that exceeded reasonable lengths. I added output validation after, checking that extracted fields matched expected patterns. I built a retry mechanism that flagged low-confidence outputs for manual review.

Here's the pattern I now use for every LLM extraction task:

const extractionSchema = {
  type: "object",
  properties: {
    title: { type: "string", maxLength: 200 },
    company: { type: "string", maxLength: 100 },
    location: { type: "string", maxLength: 150 },
    skills: {
      type: "array",
      items: { type: "string", maxLength: 50 },
      maxItems: 20
    }
  },
  required: ["title", "company"]
};

const result = await callLLMWithValidation(prompt, extractionSchema);
if (!result.valid) {
  // Fall back to a simpler extraction or flag for review
  queueForManualReview(result.raw);
}

The schema enforces structure. The validation catches surprises. This single pattern eliminated 90% of the extraction errors. But it took three iterations to get right.

The Cost Surprise Nobody Talks About

Your AI feature will cost more than you expect. Not because the API is expensive per call. Because you will make more calls than you planned.

I built an AI-powered job description rewrite pipeline to improve SEO for 1M+ listings. The prototype cost pennies. The production cost was eye-watering. The pipeline was shut down because the LLM costs at scale were unsustainable. Every rewrite consumed tokens. At 1M listings, the math didn't work.

That experience taught me to think about cost from day one. Not after the feature ships.

The solutions I've seen work:

  • Batch processing. OpenAI's Batch API cuts costs by 50%. If your workload isn't real-time, batch it.
  • Model selection. Not every task needs GPT-4. I'm evaluating DeepSeek V4 Flash as a 23x cheaper alternative for the rewrite pipeline. The quality is sufficient for SEO content.
  • Caching. If the same input appears twice, don't call the LLM twice. Cache the output.
  • Request shaping. Trim input to the minimum necessary. Long context windows are tempting, but every token costs.

On the resume tailor project, I used GPT-4o-mini for the bulk generation pipeline. The quality was indistinguishable from GPT-4 for that specific task. The cost was a fraction. The trick is knowing which tasks need the expensive model and which don't.

The Error That Never Happens in the Playground

LLMs are non-deterministic. They time out. They hit rate limits. They return empty responses. They hallucinate. Your code needs to handle all of these.

On the job board platform, the scoring pipeline runs 10,000 jobs daily. OpenAI's API occasionally returns a 429 rate limit error. Occasionally a request times out. Occasionally the model returns a response that doesn't match the function schema.

I built a retry layer with exponential backoff. I added a circuit breaker that pauses the pipeline if error rates spike. I wrote a fallback that uses a simpler model (GPT-4o-mini) when the primary model fails. The system now handles failures gracefully without human intervention.

async function callWithRetry(prompt: string, maxRetries = 3): Promise<LLMResponse> {
  for (let attempt = 1; attempt <= maxRetries; attempt++) {
    try {
      return await callLLM(prompt);
    } catch (error) {
      if (attempt === maxRetries) throw error;
      const delay = Math.pow(2, attempt) * 1000;
      await sleep(delay);
    }
  }
}

This code is simple. But the decision of when to retry and when to fail is not. Retry on rate limits. Fail fast on invalid input. The distinction matters.

The Evaluation Problem

How do you know your AI feature is working correctly in production?

The answer is not "check a few examples". The answer is automated evaluation.

On the resume tailor project, I built an anti-hallucination schema using conditional presence flags. The LLM outputs a has_* guard for every field. If has_company is false, the company field must be null. This prevents the model from fabricating information. Every output is validated against this schema before it reaches the user.

For the job board scoring pipeline, I built a quality gate that samples 1% of scored listings daily and compares them against manual reviews. If the error rate exceeds a threshold, an alert fires. This catches drift before it affects users.

Evaluation is the part of the last 20% that most teams skip. They ship the feature, test it manually, and call it done. Then three weeks later, users start complaining that the AI is getting worse. The model updated. The data changed. The prompt degraded. Without evaluation, you won't know until it's too late.

The Real Cost

The last 20% of your AI feature is not a bug fix. It is a system.

You need input validation, output validation, retry logic, cost monitoring, model selection, caching, evaluation, and drift detection. You need to handle edge cases you haven't imagined yet. You need to know when your AI is wrong.

I've built these systems across multiple projects. The job board platform processes 10,000 listings daily without manual oversight. The resume tailor generates dozens of tailored resumes in parallel with zero hallucinated data. The meeting assistant streams real-time transcription and analysis. Every one of these required the last 80%.

If your team is wrestling with AI features that work in a demo but fail in production, that's the kind of thing I help with. Happy to compare notes.


Written by Abdul Rehman, full-stack AI engineer building production SaaS, MVPs, and AI automation. More at PrimeStrides.