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

推荐订阅源

The GitHub Blog
The GitHub Blog
云风的 BLOG
云风的 BLOG
T
Threatpost
WordPress大学
WordPress大学
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
PCI Perspectives
PCI Perspectives
T
The Exploit Database - CXSecurity.com
Y
Y Combinator Blog
雷峰网
雷峰网
爱范儿
爱范儿
The Hacker News
The Hacker News
Last Week in AI
Last Week in AI
Simon Willison's Weblog
Simon Willison's Weblog
T
Tor Project blog
S
Securelist
宝玉的分享
宝玉的分享
L
LangChain Blog
O
OpenAI News
AI
AI
P
Privacy International News Feed
L
LINUX DO - 最新话题
D
DataBreaches.Net
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Attack and Defense Labs
Attack and Defense Labs
罗磊的独立博客
M
MIT News - Artificial intelligence
Security Archives - TechRepublic
Security Archives - TechRepublic
月光博客
月光博客
博客园 - 【当耐特】
T
Tailwind CSS Blog
C
Cybersecurity and Infrastructure Security Agency CISA
H
Help Net Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园_首页
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Hacker News - Newest:
Hacker News - Newest: "LLM"
腾讯CDC
Jina AI
Jina AI
The Last Watchdog
The Last Watchdog
K
Kaspersky official blog
Webroot Blog
Webroot Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Blog — PlanetScale
Blog — PlanetScale
MyScale Blog
MyScale Blog
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
Recorded Future
Recorded Future
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - 三生石上(FineUI控件)
The Cloudflare Blog

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
How much of your codebase should AI write? A trust-zone breakdown
julianrubisch · 2026-06-12 · via DEV Community

julianrubisch

Around 70% of the Rails code I ship is AI-written. The 30% I keep under my own hands is the part that names the system: what things are, who is allowed to do what with them, where value moves between them. Any AI agent will generate code faster than anyone can read it. The project vernacular has to stay in someone's head, and that someone is me.

One important takeaway from one year of intense agentic coding: The code was never the asset; the vocabulary was. Everything downstream of the labels we give concepts is a commodity. The implementation, the tests against them, the bug fixes when something breaks, those are all expendable. The naming is the part you cannot outsource without becoming a stranger in your own product.

If I cannot explain them in an elevator pitch, I cannot reason about the product. That is the part of the work I keep.

What I own: the spec

The 30% I keep is mainly the spec. Concretely: the end-to-end test that names what success looks like for the user, the test that names the rules of access, sometimes a focused test that names the contract for one piece of the system. Different idioms, same job. Each makes a name precise enough that the implementation can follow. The behavior is the product. Implementation is exchangeable.

In a Rails app the spec ownership materializes in three places. In these places I will sometimes write the implementation myself as well. Writing the code by hand is the fastest way to confirm the mental model of the system.

Auth boundaries. Who can do what. The rules that decide whether a logged-in user is allowed to see another user's records, edit their settings, charge their card. In a Rails app these usually live in a small set of rule files (a library like Pundit is the common choice) plus the login layer. This is the single most crucial security concern of an application to get right. The simplest check is to log in as two different users and try to access each other's URLs; if that works, you have a hole. The rules are the answer to "who is allowed to do what here," and that answer names the system's verbs - the actions a system is able to perform.

Anything touching money or personal data. The code that listens for "this customer just paid" from Stripe, anything that writes to billing records, anything that reads fields marked as sensitive. Stripe gives you a one-liner that confirms the message is really from them; the agent will sometimes skip it because the happy path works without. It's essential to get this right or you will lose money, so I will often implement it myself. The path the money takes through the system is a dictionary entry in its own right, and I want to be able to draw it on a napkin.

The first pass at a new concept. What things are called and how they relate. When I add a new entity to the app (a Project, a Booking, a Tax Invoice), the agent is good at translating a clear name into working code. It is poor at choosing the name and connecting nouns via verbs ("A user purchases an item"). Wrong name, wrong shape, wrong connections: these compound for months and cost more to fix than the original code cost to write. I sketch the model in my mind, name it, decide what it connects to, then write a few focused tests against the interface I want (which fields are required, what it connects to, the operations I will need) and let the agent fill in the file.

For everything else, the agent writes both the test and the code, but I have to confirm it first. The spec is small enough and the failure mode contained enough that I do not need to be the one naming things.

What the agent is genuinely good at

For small, well-defined work it needs almost no setup. A model method with clear arguments and return. A view component with explicit props. A system test once the scenario is written in plain English. A one-shot script. CRUD scaffolding for entities whose shape is already locked.

For anything bigger, the planning phase matters more than the writing phase. The agent can plan a feature end-to-end, but the first plan is almost always overbuilt: defensive abstractions for problems you do not have, optionality you will not use, indirection that hides what the system actually does. The fix is to iterate on the plan before any code is generated, and this is where you will want an expert eye on it. A useful trick is to feed the plan file to a second agent and ask it to cut the fluff; the second one has no stake in the first agent's elaborations and will strip them without ceremony. OpenSpec takes this further by pinning specs into the repository as their own markdown files, so the plan outlives the chat session.

It is also good at three things that are not "writing new code." Refactoring an existing chunk of code into a shape that reads better while keeping the tests green. Finding edge cases I had not considered, even when I dismiss them at first. Research that would take me an afternoon and takes the agent ten minutes.

I use Claude Code mainly, and Opencode for reviews. The model is not what changed my work, though. The loop did.

The defensive code problem

Ask the agent to make a feature work, and it will make it work. But it has no preference for a certain code style, so it ships everything in safety wrappers (if ... else blocks) to cater for every obscure edge case. It all looks like prudent engineering, and it doubles the length of every method.

The deeper problem is that this type of defensive code is not confident. Code calling other code should be telling it what to do, not asking what it's actually able to do. What seems like a wise thing to do - preparing for every failure mode - is a job for the called code. This is called sanitization: A method takes arguments, and upon being called decides whether it can act on them. If it cannot, it should fail loudly so the calling code can reconcile.

Apart from other advantages, confident code is easier to read, and thus keep in mind. The next person reading it can hold the whole thing in their head. That next person is usually you, three months later, trying to remember what the agent put together.

You only see the bloat if you are still maintaining a model of the system. Once the codebase outgrows what fits in your head, every safety wrap looks reasonable, and you become the surprised tenant of your own code.

The loop

Spec or test first, build to green, lock before moving on. That sentence is the whole methodology.

Spec or test first means writing the scenario in plain English before any code gets generated. "When a logged-in Pro user clicks Upgrade, they should land on the Stripe checkout page for the Pro Plus tier." That sentence becomes a system test, the system test becomes the agent's brief, and the agent has something concrete to satisfy instead of a vague intention.

Build to green means accepting nothing that does not pass the test. The agent will happily generate code that compiles and runs and is wrong in three places you cannot see. The system test is what catches the gap between "looks right" and "is right."

Lock before moving on means committing the slice as soon as it is green and starting the next one fresh. The longest agent conversations are the most error-prone ones. Commit forces a clean reset.

Skip any of the three and the agent will ship code that looks right and is wrong in three places, and you will not catch it until something breaks in production.

A discipline older than AI

Spec-driven design is everywhere right now: Substack posts, conference talks, a few new tools. The framing is usually that AI changed software development, so we need a new approach. That gets it backwards. The discipline you need with AI is the same one you needed before: test-first, contract-first, name things before you build them. These were the answers to managing junior developers, to distributed teams, to your own future self at 2am.

Obie Fernandez names what happens when you skip them. Without a structure to hold the work, AI agents "happily produce a thousand lines of plausible structure that subtly violate your domain boundaries, your naming conventions, your assumptions about data flow." The consequence is at the architectural level, not the line level. As Obie puts it: "AI coding agents have made it impossible to pretend that architecture does not matter. They generate code at a pace that exceeds your ability to manually keep the system coherent."

AI did not invent the problem. It just stopped letting you get away with skipping the answer. Architecture matters. That is what the 30% I keep is for.

Closing

If you have lost track of what the things in your code are called, the audits I run rebuild that vocabulary. Architecture, the trust zones, the patterns the agent gets wrong. Two ways to start, both free.