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

推荐订阅源

G
Google Developers Blog
宝玉的分享
宝玉的分享
月光博客
月光博客
B
Blog
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
N
Netflix TechBlog - Medium
博客园_首页
GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
A
About on SuperTechFans
Y
Y Combinator Blog
L
LangChain Blog
有赞技术团队
有赞技术团队
D
Docker
爱范儿
爱范儿
博客园 - 司徒正美
H
Hackread – Cybersecurity News, Data Breaches, AI and More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Microsoft Security Blog
Microsoft Security Blog
D
DataBreaches.Net

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
Why Reading Architecture Books Doesn't Improve Your Archi...
Alan West · 2026-05-14 · via DEV Community

The problem

You've read the books. Probably more than one. Clean Architecture, DDD, Designing Data-Intensive Applications. You know what a hexagon is supposed to mean. You can spot a Repository pattern in the wild.

And yet here you are, six months into a project you started from scratch, and the architecture is already a mess. The boundaries you drew on day one are gone. The "service layer" became a 3000-line file that everything imports. Tests take forever. Adding a feature touches five modules that you swore would never depend on each other.

I've been there. More times than I'd like to admit. The frustrating part isn't the mess — every system gets messy. The frustrating part is that reading more books doesn't seem to fix it. You can have a whole shelf of architecture wisdom and still ship a system you'd be embarrassed to show a senior architect.

There's a recent post by matklad that pokes at this, and it nudged me to write down something I've been working out for a while. Let's actually debug it.

Root cause: the feedback loop is broken

Here's the thing nobody tells you in the books: software architecture isn't a body of knowledge. It's a skill. And skills are learned by feedback, not by reading.

The trouble is architecture feedback loops are long. Sometimes painfully long.

  • A wrong for loop bites you in seconds.
  • A wrong type bites you when you hit save.
  • A slow SQL query bites you in hours.
  • A wrong architecture decision bites you in months. Sometimes years.

By the time the pain shows up, the original context is gone. You've forgotten what tradeoff you were making. You don't remember the constraints that made the decision feel reasonable at the time. So you can't actually learn from it — you just inherit a mess and feel vaguely guilty about it.

That's the bug. Not "didn't read enough." The bug is that you don't capture decisions when you make them, so when reality slaps you, you can't connect cause to effect.

Step 1: write the decision down when you make it

This is unglamorous but it's the single most effective change I've made in how I work. Whenever I make an architecture decision — anything I'd struggle to explain to a new teammate two months later — I write it down in an ADR (Architecture Decision Record). The format was popularized by Michael Nygard over a decade ago and it has aged well.

You don't need fancy tooling. A folder of markdown files works:

# ADR 0007: use Postgres LISTEN/NOTIFY for the job queue

Date: 2026-04-22
Status: Accepted

## Context
We need a job queue for sending welcome emails after signup.
Volume is ~5k jobs/day, no real-time requirement.
We already run Postgres. We do not run Redis.

## Decision
Use LISTEN/NOTIFY in Postgres rather than introducing Redis + a queue lib.

## Consequences
- One fewer moving piece in prod, one fewer thing to monitor.
- LISTEN/NOTIFY does not persist after disconnect — need a fallback
  poll for missed notifications. 30s poll on a status column.
- If volume grows past ~50k jobs/day we should revisit.

Enter fullscreen mode Exit fullscreen mode

The format isn't sacred. The point is: when this decision comes back to haunt me in eight months, I can read this file and learn something. Without it, I just have a mess and no idea whose idea it was (often: mine).

Step 2: keep a regret log

This one I borrowed from a former colleague and it's gold. Every couple of weeks, I take 20 minutes and walk through the things in the codebase that annoyed me that week. Bugs I had to chase, refactors I had to do, features that were harder than they should've been.

For each one I ask: what decision led to this? And: was the decision wrong, or was I just unlucky?

Most of the time it's the second one. Architecture is probabilistic — sometimes a reasonable call doesn't work out, and that's fine. But maybe one in five times, I trace it back to a decision and go "oh, that's what I should have noticed."

Those are the moments where you actually learn. Not when you read the chapter. When you connect the choice to the consequence.

I keep mine in a single file:

# regret-log.md

## 2026-04-08
The OrderProcessor is doing both validation and persistence.
Today I had to add a "dry run" mode and couldn't, because validation
is entangled with the DB write.

Root cause: I conflated "transaction boundary" with "function boundary."
Should have separated pure validation from effects from day one.

Lesson: when a function both checks invariants AND writes them,
that's a smell. Validate first, write second, two functions.

Enter fullscreen mode Exit fullscreen mode

After a year of this, you have a personal patterns book. One you actually believe, because you wrote it from scars.

Step 3: shorten the feedback loop on purpose

If the natural cycle is months long, you have to engineer shorter ones. A few things that work for me:

  • Pair on the design, not just the code. Walk a teammate through a design before you build it. Their confused face is free feedback.
  • Build a thin slice end to end first. Don't design the whole thing on paper. Build the simplest possible version that touches every layer. The friction you hit there is the friction you'd hit later, but smaller and cheaper to fix.
  • Re-read your own code three months later, deliberately. Not to fix it. Just to ask: "could I extend this comfortably?" If no, what would I do differently?

Here's a one-liner I run weekly to find the files that have been edited the most recently. Those are usually where the structural pain lives:

# files churned the most in the last 3 months
git log --since="3 months ago" --name-only --pretty=format: \
  | sort | uniq -c | sort -rn | head -20

Enter fullscreen mode Exit fullscreen mode

If the same five files show up at the top every month, that's a structural problem. Not a "this file is buggy" problem — a "the boundaries are wrong" problem. Worth a 30-minute think.

Prevention: build the habit, not the heroics

The mistake I made for years was treating architecture as something you do up front and then are done with. Sit down, draw the boxes, start coding. Once the boxes were drawn I stopped thinking about architecture until something obviously broke.

That's not how it works. Architecture is something you maintain continuously, in tiny corrections, the same way you maintain a garden. The teams I've seen produce the cleanest systems aren't the ones with the smartest architect. They're the ones that:

  • Write down decisions when they make them (not retroactively).
  • Re-read those decisions when reality contradicts them.
  • Refactor in small steps as their understanding improves.

None of that requires reading another book.

The books are still worth reading — they give you vocabulary, and vocabulary matters when you have to talk to other developers about tradeoffs. But the vocabulary alone won't make your systems better. The feedback loop will.

So: open a docs/adr folder in your current project this week. Write down the next three decisions you make, even the small ones. In six months, when something goes sideways, you'll have something to actually learn from.

That's the difference between knowing about architecture and getting better at it.