HN 写作课

工程师们二十年里聊过的写作。

工程师、作家、编辑和创业者在 Hacker News 上聊了二十年“怎么写”:怎么写得清楚、怎么讲好一个故事、技术文档怎么写、小说和出版是怎么回事。这里把其中关于写作与讲故事的帖子挑出来,配上中文导读、可以直接用的写作要点和评论翻译。

从必读开始
  • 2,600+篇关于写作的 HN 讨论

Writing tips

写作锦囊

正在抽一条写作要点…

Essential

必读 30 篇

在讨论库里看全部精选

编辑精选里 HN 讨论最热的 30 篇,每篇都有中文导读和写作要点。

  1. 正在载入…

Archive

讨论库

按发帖年份分布,点柱子筛选。

排序

    About

    这些讨论是怎么挑出来的

    1. 01

      从全量里捞

      读取 Hacker News 自 2006 年以来的全部帖子,用关键词先捞出 40 分以上、可能和写作有关的约 1.1 万篇。

    2. 02

      只留真正讲写作的

      由 AI 逐条判断是否和写作、讲故事、文风、出版有实质关系,剔除“写代码”“编辑器”这类字面撞车,并分进十个类别。

    3. 03

      提炼可用的要点

      为值得读的帖子写中文导读,提炼 2-4 条可以直接用到自己写作里的要点,并精选翻译 HN 高赞评论。内容由 AI 生成,可能有误。

    技术写作与文档2020developers.google.com编辑精选

    技术写作课程

    Technical Writing Courses

    阅读原文 HN 讨论
    571HN 得分
    73条评论
    4条写作要点

    导读

    这是 Google 官方免费技术写作课程(两门),讲受众定义、主动语态、短句、文档结构等基础方法。评论区既有对课程组织方式的肯定,也有资深从业者对"技术文档通病"的批评,值得写作者对照自省:好文档不等于把所有细节讲全,而是帮读者完成他想做的事。

    关键词 技术写作文档读者意识简明表达

    可以直接用的写作要点

    1. 01

      动笔前先明确读者是谁、他们已经知道什么、读完后要做什么,这决定了你该写什么、跳过什么。

    2. 02

      优先用主动语态和短句:句子越短、主语越明确,读者理解成本越低,技术内容尤其如此。

    3. 03

      别只给"列出资源"这类玩具示例,要给读者真实场景:拿到数据后怎么处理、怎么用。

    4. 04

      少铺垫、先给全貌:开头讲清整体图景,再进入细节,避免读者在枝节里迷路。

    HN 评论精选

    课程结构清晰、原则易记,值得先看再评价。

    读完这里的评论,我怀疑不少人根本没点开链接看内容。这两门课结构其实很好:每门课有总纲列出所有课时,每课又有目录概览要点,用几条易记的原则把技术写作的核心主题讲透。我上大学时要是课程也这么有条理就好了。亮点包括:定义你的受众、吸引受众(主动语态)、以及短句如何提升理解度。

    mattlutze查看英文原文

    After reading some of the comments here, I'm wondering if people are actually following the link and reviewing the content. The two courses are well-structured. Each course has an overall outline listing each lesson, and each lesson has a table of contents to overview the topics therein. The courses highlight major key topics in technical writing and does so with easy-to-internalize (tenets). I'd have loved for my university coursework to be so clearly organized. Some highlights include defining your audience[1], engaging your audience[2] and reviewing how short and clear sentences improve comprehension[3]. 1: https://developers.google.com/tech-writing/one/audience#define_your_audience 2: https://developers.google.com/tech-writing/one/active-voice 3: https://developers.google.com/tech-writing/one/short-sentences

    文档要服务读者的真实目标,先给大局再讲细节。

    这就是"没人看文档"的原因。这类课程是典型的技术写作者式过度设计:只见树木不见森林,然后又陷进杂草里(请允许我混用比喻)。开头铺垫和设置太多,接着直接跳到细枝末节,始终没给出全局图景。如果这是 Google 的技术写作者写的,那水平之平庸让我意外。写文档只需要两样东西:对主题的理解,以及对读者想做什么的高层把握。读者不是想用你的 API 列出资源,他是想给自己的用户一份可继续操作的资源清单。所以你不该给"获取供应商列表"这种无意义示例,而该示范如何取出列表、处理其中有用的字段并展示出来。当然,如果 API 或 UI 本身就逻辑一致,那会省事很多。

    205guy查看英文原文

    This is why “nobody reads documentation.” These courses are typical tech-writer overkill, missing the forest for the trees, then getting lost in the weeds (if I may mix a few metaphors). There is too much introduction and setup, then it jumps into the nitty-gritty, but never gives the big picture. Assuming this was written by the Google tech writers, I’m surprised at how middle-of-the-road the offering is. I kinda assumed they had an academic-like cutting-edge writing department. To write documentation, you need 2 things: an understanding of the subject matter, and a high-level understanding of what the readers want to do. The reader doesn’t want to use your API to list resources, the reader wants to give his/her users a list of resources for further operations. So you don’t give a trivial example of getting the list of providers, you give an example of how to display providers by getting the list and processing the various useful fields. It also helps if the API or UI or whatever is logical and consistent to begin with.

    推荐《经济学人》与美国陆军风格指南作为范例。

    我见过最好的风格指南是《经济学人》的(附链接),美国陆军写给领导层的写作风格指南也相当不错。这里(课程中)的例子非常好。

    sandGorgon查看英文原文

    The best i have seen is the economist style guide - http://cdn.static-economist.com/sites/default/files/pdfs/style_guide_12.pdf the US Army writing style guide for leadership is also pretty good - https://www.esd.whs.mil/Portals/54/Documents/DD/iss_process/Writing_Style_Guide.pdf The examples here are very very good.

    同类还值得读

    1. 编写更好文档的框架

      A Framework for Writing Better Documentation

      这是 Divio 的文档写作框架,把技术文档按「读者的目标」分成四类:教程(学习导向)、操作指南(问题导向)、参考(信息导向)、解释(理解导向)。

      技术写作与文档2021 · 637 分 · 76 评4 条写作要点编辑精选
    2. 写好一份设计文档

      Writing a good design document

      这篇 HN 帖子标题为《Writing a good design document》,主题是如何写好一份设计文档;对写作者来说,它值得作为技术写作和结构化说明文的参照。

      技术写作与文档2025 · 581 分 · 147 评3 条写作要点编辑精选
    3. 写出更好的错误信息

      Write better error messages

      这篇帖子讨论如何写出更好的错误信息,评论补充了开发者场景下的具体做法和真实反面案例。

      技术写作与文档2022 · 566 分 · 253 评4 条写作要点编辑精选
    4. 写一本技术书的经济账

      The Economics of Writing a Technical Book

      一位技术书作者拆解写书的真实经济账:版税收入往往远低于投入的时间成本。

      技术写作与文档2018 · 519 分 · 149 评4 条写作要点编辑精选
    5. Diátaxis——技术文档编写的系统化方法

      Diátaxis – A systematic approach to technical documentation authoring

      Diátaxis 是一套把技术文档按「教程、操作指南、参考、解释」四类拆分的写作框架,核心是让每一篇文档只服务一种读者需求、只承担一种写作任务。

      技术写作与文档2024 · 514 分 · 113 评4 条写作要点编辑精选

    打赏支持

    打赏二维码

    觉得有用,请作者喝杯咖啡。

    WeChat

    关注向阳乔木

    微信公众号「向阳乔木推荐看」

    微信公众号「向阳乔木推荐看」二维码

    微信扫一扫;在微信里打开本页时,长按二维码识别。