How I try to write posts people actually finish reading
本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。
These are things I’m practising, not claiming mastery of. If you read a post of mine and found it dull, that’s feedback I want. Still, after writing technical posts for my own site and this series, a few patterns stand out. This post is a field guide to the structure I aim for, a pre-publish checklist, and the mistakes I try to avoid.
这些是我正在实践的内容,而非自诩精通。如果你读过我的文章并觉得枯燥,那正是我想要的反馈。尽管如此,在为我自己的网站和这个系列撰写技术文章后,我总结出了一些规律。这篇文章是一份关于我所追求的结构、发布前检查清单以及我试图避免的错误的实战指南。
Start with the reader’s question. Every post answers a question someone has, even if they haven’t typed it. Before writing, finish this sentence: After reading this, you’ll be able to ______. If you can’t, the post doesn’t have a purpose yet. “Understand RAG” is vague. “Explain chunking and retrieval well enough to build a five-note prototype” is concrete.
从读者的问题开始。每一篇文章都要回答某人心中存在的问题,即使他们没有将其打字输入。在动笔之前,请完成这个句子:读完这篇文章后,你将能够______。如果做不到,这篇文章就还没有明确的目的。“理解 RAG”很模糊。“解释分块(chunking)和检索(retrieval),足以构建一个五条笔记的原型”则很具体。
The title is a promise. Good titles are specific and honest: Vague: Thoughts on databases. Better: I put my business rules in the database instead of React, here’s what it bought me. The second tells you the topic, a decision, and a payoff. But don’t overpromise. A title that claims more than the post delivers loses trust faster than a dull title loses clicks.
标题是一种承诺。好的标题具体且诚实:模糊的标题:关于数据库的思考。更好的标题:我把业务规则放在数据库里而不是 React 中,这给我带来了什么。第二个标题告诉了你主题、一个决策以及收益。但不要过度承诺。一个标题如果承诺的内容超过了文章实际提供的价值,其失去信任的速度要远快于枯燥标题失去点击的速度。
The first paragraph earns the second. No throat-clearing. Skip “In today’s fast-paced world of software development…”. Start with the problem, a surprise, or a sentence that sets the stakes: “When something breaks, my worst instinct is to start changing things.” “My site’s deploys silently failed for two weeks.” If a stranger can’t tell why to keep reading after three sentences, cut until they can.
第一段要为第二段赢得读者的关注。不要清嗓子式的废话。跳过“在当今快节奏的软件开发世界中……”。从问题、惊喜或设定利害关系的句子开始:“当某样东西坏掉时,我最糟糕的本能就是开始乱改。”“我网站的部署静默失败了两个星期。”如果一个陌生人在读完三句话后看不出为什么要继续读下去,那就删减到他们能看出来为止。
One idea per post. If a post has three big ideas, it’s three posts. Readers finish things with a clear spine. Everything that doesn’t serve the spine goes into another post or gets cut.
每篇文章只讲一个观点。如果一篇文章有三个大观点,那它就是三篇文章。读者喜欢读有清晰主线的文章。所有不服务于主线的内容都应放入另一篇文章或直接删掉。
Use structure, then trust it. For technical writing, I use a repeating shape: The problem in human terms. The idea in one or two sentences. A concrete example, with code if code helps. What went wrong or what it costs. A takeaway you can reuse. A question for the reader. Subheadings make it scannable, since most readers skim first and read second. Make each heading say something, not just “Overview”.
使用结构,然后信任它。对于技术写作,我使用一种重复的模式:用通俗语言描述问题。用一两句话概括观点。一个具体的例子,如果代码有帮助就加上代码。哪里出了问题或代价是什么。一个可以复用的要点。一个给读者的问题。小标题使文章易于扫描,因为大多数读者是先略读后精读。让每个标题都有实际意义,而不仅仅是“概述”。
Show, don’t just tell. Code people can copy is the most useful thing in a technical post, so make it runnable or clearly mark it as a sketch. Tables work for comparisons. A diagram or a summary image helps visual readers and gives your post a shareable image. Real numbers and real names, when they’re true and checkable.
展示,不要只说。读者可以复制的代码是技术文章中最有用的东西,所以要让它可运行,或者清楚地将其标记为草稿。表格适用于比较。图表或总结性图片有助于视觉型读者,并为你的文章提供一张可分享的图片。在真实且可核实的情况下,使用真实的数据和名称。
Keep the honesty rule. For this series, I follow rules I wrote on Day 1: only write what I did or believe, say what didn’t work, and label opinions as opinions. Practically that means: No invented statistics. No “everyone knows”. If I didn’t measure it, I don’t say it’s fast. Limits are part of the post, not hidden at the bottom. Honest writing also happens to be easier to write: you never have to remember which story you made up.
保持诚实原则。对于这个系列,我遵循第一天写下的规则:只写我做过或相信的事,说出哪些方法行不通,并将观点标记为观点。实际上这意味着:没有虚构的统计数据。没有“众所周知”。如果我没有测量过,我就不会说它很快。局限性是文章的一部分,而不是藏在底部。诚实的写作恰好也更容易写:你永远不需要去记你编造了哪个故事。
An honest ending. End on something useful: A limit: “here’s what this doesn’t cover.” A question: something you genuinely want answered. A next step: what you’d try, or what comes next. Avoid ending on a summary of what you’ve just said, unless the post is long enough that readers need it.
一个诚实的结尾。以有用的内容结尾:局限性:“这是本文未涵盖的内容。”一个问题:你真心想得到答案的问题。下一步:你会尝试什么,或者接下来会发生什么。避免以总结全文作为结尾,除非文章长到读者确实需要总结。
A pre-publish checklist: [ ] Can I finish the sentence “you’ll be able to…”? [ ] Does the title match what the post delivers? [ ] Do the first three sentences give a reason to continue? [ ] One idea only? [ ] Is every claim something I can back up? [ ] Code tested or labelled as a sketch? [ ] Headings that say something? [ ] An ending that gives something back? [ ] Spelling and links checked?
发布前检查清单:[ ] 我能完成“你将能够……”这个句子吗?[ ] 标题是否与文章内容相符?[ ] 前三句话是否给出了继续阅读的理由?[ ] 是否只有一个观点?[ ] 每一项主张我都能提供支撑吗?[ ] 代码是否经过测试或标记为草稿?[ ] 标题是否有实际意义?[ ] 结尾是否提供了有价值的东西?[ ] 拼写和链接是否检查过?
The read-aloud test. Read the post aloud. Wherever you stumble, the reader will too. Long sentences you run out of breath on need splitting. Words you wouldn’t say to a friend need replacing.
朗读测试。大声朗读文章。你在哪里卡壳,读者也会在哪里卡壳。让你喘不过气来的长句需要拆分。你不会对朋友说的词需要替换。
Reading time. There’s a trade-off between depth and attention. On my own site, reading time is computed from the word count so I don’t hand-write it. A rough rule: 200 words a minute, so a 1,500-word post is about seven minutes. Long is fine if every section earns its place. Cut anything that’s there to hit a length.
阅读时间。深度和注意力之间存在权衡。在我自己的网站上,阅读时间是根据字数计算的,所以我不需要手动填写。一个粗略的规则:每分钟 200 字,所以 1500 字的文章大约需要七分钟。如果每一部分都有其存在的价值,长一点没关系。删掉任何仅仅为了凑字数而存在的内容。
What I’m still learning. Cutting my own favourite paragraph when it doesn’t serve the post. Writing a title after the draft, when I know what it really says. Resisting the urge to sound more expert than I am.
我仍在学习的内容。当自己最喜欢的段落不服务于文章时,将其删掉。在写完草稿、知道文章真正说了什么之后再写标题。抵制那种想让自己听起来比实际更专业的冲动。
A before/after: rewriting an intro. Before (a typical first draft): In the modern world of software development, testing is becoming more and more important. Many developers know they should write tests, but it can be hard to find the time. In this post I will talk about my experience with testing and how I plan to improve it. It’s polite and says almost nothing. Nothing happens in the first three sentences. After: Writing tests is advice I give and haven’t followed everywhere. CardBridge has no automated test suite. So here’s the plan, publicly, so I’m accountable. Same topic. The second version admits something specific, sets a stake and gives a reason to continue. It’s also shorter.
修改前后的对比:重写引言。修改前(典型的初稿):在现代软件开发世界中,测试变得越来越重要。许多开发者知道他们应该编写测试,但很难抽出时间。在这篇文章中,我将谈谈我在测试方面的经验以及我计划如何改进它。这很礼貌,但几乎什么都没说。前三句话里什么都没发生。修改后:编写测试是我给出的建议,但我自己并没有在所有地方都遵循。CardBridge 没有自动化测试套件。所以这是我的计划,公开出来,这样我就有了责任感。主题相同。第二个版本承认了具体的事实,设定了利害关系,并给出了继续阅读的理由。它也更简洁。
A four-round editing pass. Don’t edit everything at once. Do it in rounds. Round 1: Structure. Does the post have one idea? Are the sections in the right order? Cut or move whole sections. Round 2: Clarity. Rewrite sentences that you had to read twice. Replace jargon with plain words, or define it. Round 3: Evidence. For each claim, ask: can I back this up? Add the command, link or example. Delete what you can’t. Round 4: Polish. Spelling, links, code formatting, headings, alt text. Taking a break of even a few hours between round 3 and round 4 makes errors much easier to see.
四轮编辑法。不要一次性编辑所有内容。分轮次进行。第一轮:结构。文章是否只有一个观点?各部分顺序是否正确?删减或移动整个段落。第二轮:清晰度。重写那些需要读两遍才能懂的句子。用通俗词汇替换术语,或对其进行定义。第三轮:证据。对于每一项主张,问自己:我能支撑它吗?添加命令、链接或示例。删掉无法支撑的内容。第四轮:润色。拼写、链接、代码格式、标题、替代文本。在第三轮和第四轮之间休息几个小时,会让错误更容易被发现。
Words to cut. These add length but not meaning: “very”, “really”, “quite”, “basically”, “actually”. “In order to” (use “to”). “It is important to note that” (just note it). “There are many X that Y” (name two). “Needless to say” (then don’t).
需要删减的词。这些词增加了篇幅但没有增加意义:“非常”、“真的”、“相当”、“基本上”、“实际上”。“为了”(直接用“to”)。“值得注意的是”(直接写出来)。“有很多 X 可以 Y”(列举两个)。“不用说”(那就别说)。
Sentences that earn their place. Prefer concrete over abstract: Vague: “Performance improved.” Concrete: “The query went from a full scan to an index lookup.” (only if true). Vague: “It was a challenging bug.” Concrete: “It only failed for viewers, never for editors.” Vague: “I learned a lot.” Concrete: “I learned that a…”
让句子物有所值。比起抽象,更偏向具体:模糊:“性能提高了。”具体:“查询从全表扫描变成了索引查找。”(仅在属实时)。模糊:“这是一个具有挑战性的 Bug。”具体:“它只在查看者端失败,从不在编辑者端失败。”模糊:“我学到了很多。”具体:“我学到……”