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 生成,可能有误。

    技术写作与文档2020buttondown.email编辑精选

    别用 Markdown 写文档

    Don't write documentation in Markdown

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

    导读

    这篇讨论围绕“不要用 Markdown 写文档”展开,核心争议不是 Markdown 是否完美,而是文档到底该用什么工具才最容易让人真正写出来。对写作者而言,它提醒我们:降低写作摩擦、记录决策背后的“为什么”,往往比纠结格式更重要。

    关键词 技术写作Markdown文档习惯设计决策

    可以直接用的写作要点

    1. 01

      优先选择自己和团队真正愿意用的写作工具,先降低启动阻力,把内容写出来。

    2. 02

      文档不只解释代码“做了什么”,更要记录“为什么这样做”以及关键设计决策。

    3. 03

      格式争论不应阻碍写作;不完美的文档也远胜于没有文档。

    4. 04

      面向工程团队的文档要简单、通用、易更新,让维护成本足够低。

    HN 评论精选

    工具选择应看使用门槛和写作意愿,而不是理论上的最优。

    这让我想起几年前一篇反 Markdown 文章下的评论:“在我看来,写文档最好的工具,就是任何人真的愿意去用的那个。Markdown 可能不完美,但至少简单、大家都懂,所以写和更新文档的门槛很低。”——warmans

    husarcik查看英文原文

    This reminds me of a comment on an anti-markdown post I read a few years back. "As far as I'm concerned the best tool for writing documentation is the one that anyone can actually be bothered to use. Markdown might not be perfect but at least it's simple and commonly understood so there isn't much barrier to writing/updating documentation." - warmans [1] https://www.reddit.com/r/programming/comments/4ck2lu/why_you_shouldnt_use_markdown_for_documentation/

    文档的第一目标是有人写,Markdown 胜在低摩擦。

    这没抓住重点。目标是“请把文档写出来”。对工程师来说,哪种方案阻力最小?目前绝大多数情况是 Markdown。它不完美,常常缺少技术写作者想要的特性,但能覆盖大多数用例,而且开发者愿意写。所以请用你喜欢的任何方式写文档,只要写出来。

    1MoreThing查看英文原文

    This is missing the point. The goal is "please write your documentation." What solution has the least friction around that for engineers? Right now, it's overwhelmingly Markdown. It's not perfect, and often doesn't provide the features a technical writer or other content specialist might want, but it handles most use cases and is something developers are willing to write in. So please, write your documentation in whatever you feel like. As long as it gets written.

    代码不能替代文档,尤其要记录“为什么”和设计决策;有文档胜过格式完美。

    与此同时程序员在想:请写文档吧!求求了。哪怕是用 Markdown 写的文档,也比经常出现的“什么都没有”强。很多程序员说代码就是最好的文档。并不是。源码回答了怎么做和是什么,却没有回答最重要的问题——为什么。软件体现许多架构和设计决策。哪些决策是明确做出的、为什么?看代码时我常常能理解做了什么,但并不能立刻看清为什么。在我合作的团队里,我让他们记录这些决策,帮助很大——有时过三年多再问,原实现者都不记得当初为什么那样做。要是我的问题是“大家用 Markdown 写文档”就好了;现在我只想要有文档。拜托?

    taylodl查看英文原文

    Meanwhile programmers are like: Please write documentation! Please. I'm begging you. Even documentation written in Markdown is better than the nothing that all-too-often gets created. A lot of programmers argue the code is the best documentation. No it's not. Source code answers the how and what but it doesn't provide any answer to the most important question of all - why? Software embodies several architectural and design decisions. What decisions were explicitly made and why were they made? All too often when looking at code I can certainly understand what was done, but it's not at all immediately clear as to why. On the teams I've been working with I've gotten them to capture these decisions. It's been a great help - sometimes the original implementors can't remember why something was done the way it was done - especially when asked three or more years later. Admonishing people to write documentation in Markdown would be a nice problem for me to have. Meanwhile I'd just like some documentation at all. Please?!

    同类还值得读

    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. 技术写作课程

      Technical Writing Courses

      这是 Google 官方免费技术写作课程(两门),讲受众定义、主动语态、短句、文档结构等基础方法。

      技术写作与文档2020 · 571 分 · 73 评4 条写作要点编辑精选
    4. 写出更好的错误信息

      Write better error messages

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

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

      The Economics of Writing a Technical Book

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

      技术写作与文档2018 · 519 分 · 149 评4 条写作要点编辑精选

    打赏支持

    打赏二维码

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

    WeChat

    关注向阳乔木

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

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

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