C4 is a methodology that gives architecture diagrams a fixed storyboard; PlantUML is its best carrier. Here’s the shortest path from zero to productive.
What is C4C4, from Simon Brown, splits arc...
C4 是一种给架构图「固定分镜」的方法论,PlantUML 是它的最佳载体。这篇是从入门到上手 C4-PlantUML 的最短路径。
什么是 C4C4 由 Simon Brown 提出,把架构图分成 4 层:
层级
视角
读者
Level 1 — System Context
系统对外提供什么价值
任何利益相关方
Level 2 — Container
系统内部由哪些「可...
“Our architecture diagram is out of date” is a universal team pain. Here’s how to use CI to bind diagrams to the codebase — auto-check, auto-rerender, staleness alerts, PR thumbnails.
The anti-pa...
「我们画的架构图过期了」是每个团队的痛。这篇讲怎么用 CI 让图永远跟得上代码 —— 自动检查、自动重渲染、过期提醒、PR 自动出图。
反模式:写一张图就忘123docs/architecture/ flow.png # 2023 年画的,没人维护README.md
半年后服务下线了、新服务上线了,这张 flow.png 还是 2023 年的样子。架构图活在真空里。
正...
This isn’t about how to use PlantUML. It’s about seven ways that “work, but suck” — pulled from real PR reviews and rewrites of my own old diagrams.
1. One diagram, 200 linesThe most common one. ...
这篇不是讲 PlantUML 怎么用,是讲 PlantUML 的 7 种「能跑,但是烂」写法。每条都是被同事代码评审 / 自己回看旧图踩过坑后总结的。
1. 一张图塞 200 行最常见的反模式之一。一张时序图想表达 12 个服务、40+ 步骤,评审者根本看不下去。
12345678910111213141516171819202122232425262728293031@sta...
Diagrams usually get skipped during PR review because most teams keep them in Confluence or PowerPoint. Here’s how to push them through review the same way you push code.
Why we don’t put diagram...
PR 评审里图往往被遗漏,因为大多数团队把图放在 Confluence 或者 PPT 里。这篇讲怎么把 PlantUML 当代码一样放进 PR。
为什么不把图放进 PR最常见的几个借口:
「图是设计阶段画的,开发评审不动」
「图很大、牵一发动全身,合并时容易漏」
「评审系统看不到图,没有评审意义」
这些借口在 PlantUML + GitHub/GitLab 渲染器面前都不...
Two paths to embed PlantUML in a static blog: pre-render on the server, or have the reader’s browser render on the fly. Here’s the field guide.
Option A: Server-side render (hexo-renderer-plantum...
把 PlantUML 嵌进静态博客有两条路:本地/服务端事先渲染,或者让读者浏览器现渲染。这篇是两套方案的踩坑总结。
方案 A:服务端渲染(hexo-renderer-plantuml)工作流:<hexo> hexo generate 阶段把 ```plantuml 代码块渲染成 SVG 图片,生成的 HTML 直接包含 <svg>,不需要客户端 JS。...