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

推荐订阅源

月光博客
月光博客
T
The Exploit Database - CXSecurity.com
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tailwind CSS Blog
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 聂微东
博客园 - Franky
美团技术团队
WordPress大学
WordPress大学
博客园 - 司徒正美
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
DataBreaches.Net
腾讯CDC
大猫的无限游戏
大猫的无限游戏
人人都是产品经理
人人都是产品经理
Microsoft Azure Blog
Microsoft Azure Blog
D
Docker
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
T
Tor Project blog
G
GRAHAM CLULEY
Simon Willison's Weblog
Simon Willison's Weblog
I
InfoQ
Cyberwarzone
Cyberwarzone
V
V2EX
T
Tenable Blog
NISL@THU
NISL@THU
Scott Helme
Scott Helme
K
Kaspersky official blog
Latest news
Latest news
S
Schneier on Security
Martin Fowler
Martin Fowler
博客园 - 三生石上(FineUI控件)
Know Your Adversary
Know Your Adversary
Microsoft Security Blog
Microsoft Security Blog
S
Securelist
M
MIT News - Artificial intelligence
V
Vulnerabilities – Threatpost
P
Proofpoint News Feed
L
LangChain Blog
T
Threat Research - Cisco Blogs
Spread Privacy
Spread Privacy
T
Threatpost
有赞技术团队
有赞技术团队

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 End of Vibe Coding: Why I Switched to Structured AI Workflows
Pizza Cat · 2026-06-11 · via DEV Community

Pizza Cat

The End of Vibe Coding: Why I Switched to Structured AI Workflows

I spent 3 months "vibe coding" my SaaS. Then I realized I was spending more time fixing AI's mistakes than if I'd written it myself. Here's the system that changed everything.


In early June 2026, two HN threads with a combined ~1,300 comments told me something had shifted.

Thread 1 (~1,100 comments): "What was your 'oh shit' moment with GenAI?"
Thread 2 (~230 comments): "What tools have you made for yourself since AI?"

Both threads had the same pattern: people started with unfiltered excitement ("I built a whole app in one weekend!"), then hit a wall ("I'm spending more time fixing its bugs than writing code from scratch").

I know the feeling. I lived it.

The Vibe Coding Trap

When I started building MultiPost — an AI-powered cross-platform content tool — I was deep in "vibe coding" mode:

Me: "Make it look better"
AI: *adds Tailwind, restyles everything*
Me: "Add a filter by date"
AI: *adds a date picker, breaks the layout*
Me: "Fix that bug where posts don't show"
AI: *fixes the filter, introduces a null pointer*
Me: "Okay now add a dark mode toggle"
AI: *regenerates half the component from scratch*

Three weeks later I had a working feature and zero understanding
of how any of it actually held together.

This was my daily rhythm for weeks. Fast output, slow cleanup. The ratio kept getting worse as the codebase grew.

I was optimizing for speed of generation instead of speed of delivery.

The "Oh Shit" Moment

It came when I reviewed a feature I'd built entirely through unstructured AI sessions. The feature worked. But:

  • The code had 3 different patterns for the same thing (Auth0 token handling in one place, hardcoded keys in another)
  • Error handling was inconsistent — some functions returned null, others threw, others returned Result types
  • Database queries were scattered across the codebase instead of in a repository layer
  • A security reviewer would have cried

The AI didn't do this maliciously. It did this because I asked it to "fix this" and "add that" without ever giving it a structural framework. Every session was a fresh context with no memory of architectural decisions from the previous one.

The Fix: Structured AI Workflows

I switched from "vibe coding" to what I call structured AI workflows. The principle is simple:

Don't ask AI to write code. Ask it to execute a plan that you've designed together.

Here's the actual system I use:

1. Design Before Generate (15 minutes)

Before I let AI write a single line of code for a feature:

Step 1: Describe the feature in plain English back to AI
Step 2: Ask AI to list the components, data flow, and edge cases
Step 3: I review the plan — fix the architecture BEFORE code exists
Step 4: Only then: "Implement component X as designed"

The key change: I'm reviewing a plan, not debugging code. A plan review takes 2 minutes. Debugging generated code takes 30 minutes.

2. One Concern Per Session

This was my biggest mistake. I'd ask AI to "build the auth system" in one go — which means it generates auth UI, backend routes, database schema, and middleware all at once. Too much to review.

Instead:

Session 1: "Design the auth data model. Here are the constraints..."
Session 2: "Implement the auth API routes based on the data model from session 1"
Session 3: "Build the login page UI"

Each session has one clear output that I can fully review in under 5 minutes.

3. Enforce Structure with Prompt Templates

I stopped typing one-off prompts. Every session starts with a structured template:

CONTEXT: [what we're building, decisions made so far]
TASK: [single, specific output]
CONSTRAINTS: [tech stack, patterns to follow, things to avoid]
OUTPUT FORMAT: [expected delivery — code block, diagram, plain text]

This alone cut my "fix AI's mistakes" time by ~60%.

4. The "Review Gate" Practice

After every implementation session, before accepting the code:

  1. Does it match the plan? (If not, reject — don't fix inline)
  2. Are error paths handled? (If not, ask for them specifically)
  3. Is it consistent with existing code? (Same patterns, same conventions)

This sounds like a lot. It takes 3-5 minutes per session and saves hours of later debugging.

The Before and After (Real Code)

Here's what a typical piece of vibe-coded auth logic looked like in my codebase — three different sessions, three different patterns:

- // Session 1: "Add auth check here"
- function getUserId(req) {
-   const token = req.headers.authorization?.split(' ')[1]
-   return token ? jwt.verify(token, process.env.SECRET).sub : null
- }
- 
- // Session 2: "Also add auth here"
- const requireAuth = (req, res, next) => {
-   try {
-     const user = jwt.verify(req.cookies.token, 'hardcoded-secret-123')
-     req.user = user
-     next()
-   } catch { res.sendStatus(401) }
- }
- 
- // Session 3: "Fix the auth bug"
- async function getUser(req) {
-   if (!req.headers['x-auth']) return { error: 'no auth' }
-   const result = await db.query(`SELECT * FROM users WHERE token = '${req.headers['x-auth']}'`)
-   return result.rows[0]
- }

Three approaches. Three error-handling styles. A hardcoded secret. A SQL injection waiting to happen. All doing "the same thing" because each session had no memory of the last.

After applying the structured workflow (one concern per session, review gate between each):

+ // repository/auth.js — single source of truth, one pattern
+ 
+ export function verifyToken(token) {
+   try {
+     return jwt.verify(token, process.env.AUTH_SECRET)
+   } catch {
+     return null
+   }
+ }
+ 
+ export function requireAuth(req, res, next) {
+   const token = req.cookies.token ?? req.headers.authorization?.split(' ')[1]
+   const payload = verifyToken(token)
+   if (!payload) return res.status(401).json({ error: 'unauthorized' })
+   req.userId = payload.sub
+   next()
+ }

One file. One pattern. One error-handling strategy. The AI wrote both versions — the difference was whether I gave it a structure to work within.

Real Numbers: Before vs After

For MultiPost specifically:

Metric Vibe Coding Structured Workflows
Time to feature completion 4-6 hours 3-4 hours
Code review reject rate ~40% ~10%
Post-deploy bugs per feature 3-5 0-1
Time spent debugging per week 8+ hours 2-3 hours

The interesting part: structured workflows are actually faster overall, even though they feel slower in the moment. The upfront planning time pays for itself in avoided debugging.

The Flow Difference

Here's what the two approaches look like side by side:

VIBE CODING:
  "Build feature X" → AI writes 500 lines → Deploy → Bug → Debug → Patch → Repeat
  │                      │                        │
  └── You skip design    └── 1 huge chunk         └── 30 min to find the issue

STRUCTURED WORKFLOW:
  "Design feature X" → Review plan → "Implement component 1" → Review → "Implement 2" → Review → Ship
  │                     │            │                          │
  └── 2 min plan        └── 2 min    └── small, reviewable      └── 3 min, catches bugs early

The vibe coding path feels faster because you see output immediately. The structured path is faster because you almost never backtrack.

The Bigger Pattern

Looking at that ~230-comment HN thread, multiple people independently came to the same conclusion:

"Most of the tools I write now are bridges to various SaaS products that have APIs but no CLIs."

"I made a harness to discipline AI output. The opposite of vibe coding. Using it daily."

"Superpowers guides the model to use careful, methodical approaches. Great for multi-step planning."

The community is self-organizing around the same insight: AI is a powerful junior engineer. Junior engineers need structure to produce quality work.

What I Use Now

I ended up building a CLI called Content Bridge to enforce this exact workflow. It's literally this article turned into a tool — you write a plan, review it, implement one component at a time, and the CLI enforces the structure so you don't have to remember the rules.

But you don't need any tool to start. You can begin today with one change:

Before your next AI session, spend 2 minutes writing down what you want it to produce. Not how — what. Review that plan before generating anything.

The generation is the easy part. The structure is the work.


What's your approach? Have you hit the same vibe coding trap? Drop your workflow (or horror story) in the comments — I read all of them.