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

    技术写作与文档2016gitbook.com

    Show HN:GitBook 编辑器 Beta——Markdown 所见即所得,支持 TeX

    Show HN: GitBook Editor Beta – Markdown WYSIWYG, TeX

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

    导读

    GitBook 发布编辑器 Beta,主打 Markdown 所见即所得与 TeX 公式渲染。HN 上的讨论很快从功能转向一个更实际的问题:写长篇「正经文档」到底该用什么工具?话题涉及在 LaTeX 之上叠加所见即所得、把 Markdown 当作 pandoc 的原生交换格式,以及是否该把稿件托付给订阅制编辑器。对写作者来说,这是一次关于「写作与排版分离」的实用讨论。

    关键词 Markdown写作工具链排版与公式纯文本工作流

    可以直接用的写作要点

    1. 01

      为长篇作品选定一种纯文本源格式(如 Markdown),让写作与排版、发布格式解耦,随时可换工具而不丢稿。

    2. 02

      公式或复杂排版交给实时预览去承担,别在源码和成品之间来回切换,把注意力留给内容本身。

    3. 03

      把稿件保存在自己可控的本地纯文本文件里,谨慎让第三方服务进入「交给编辑或付印之前」的写作流程。

    4. 04

      工具选择上优先考虑能对接多种输出格式(如 pandoc)的方案,避免被单一平台锁定。

    HN 评论精选

    所见即所得层可以架在 LaTeX 之上,让公式密集的文档也能边写边看到成品。

    你也可以看看 Overleaf:它在完整的 LaTeX 发行版之上提供了一层富文本(所见即所得)编辑,并在浏览器里把编译后的文档自动预览显示在源码旁边。它主要面向研究论文和相关材料,但什么都能写——最早的项目之一(不是创始人做的)就是一套婚礼请柬。(PS:我是创始人之一,欢迎反馈。)

    JohnHammersley查看英文原文

    You might also want to check out Overleaf[1] -- it offers a rich text (WYSIWYG) layer on top of a full LaTeX distribution, with an automatic preview of the compiled document alongside the source in the browser. It's geared primarily towards research papers and associated material, but can be used for anything! One of the first projects (not by the founders) was a set of wedding invitations! [1] https://www.overleaf.com PS: In case you can't guess, I'm one of the founders, and any feedback is always appreciated, thanks.

    面向正式文档而非网页笔记的 Markdown 编辑器长期缺位,插件化编辑器只能临时补足。

    编辑器不错。我一直觉得面向「真正文档」的 Markdown 编辑器还有很大空间——之前一直用 Atom,配上合适的插件能覆盖很多场景,我甚至写过一个做类似行内数学渲染的插件。

    mangecoeur查看英文原文

    Neat editor, I've long felt there's room for a markdown editor geared to writing 'real' documents - been working with Atom which covers a lot of ground with the right plugin - I even wrote a plugin that does something similar to their inline math rendering: https://atom.io/packages/preview-inline

    长篇写作应把稿件保存在纯文本源格式里、围绕 pandoc 自由转换,而不是把流程锁进订阅服务。

    我最近在写一本新书,一直在定写作流程。我边写边把章节当博客文章发,但在 WordPress 里编辑体验很差,我也不认为 HTML 适合做书的权威源文件。我第一本书和很多旧文档用 SGML DocBook 写,后来转成 XML DocBook:好处很多,配合顺手的 vim 配置并不难用,输出格式也非常灵活,最终出版用的是出版社模板的 Word 文档。不过那都是很久以前了,现在文档可以从很多格式起步、落到很多格式,pandoc 完全改变了规则,而 Markdown 似乎是最「原生」的 pandoc 格式。总之我觉得我该用 Markdown 写作。但这个工具完全不适合我:为文本编辑器付订阅费很别扭,在交给编辑或付印之前我不想让第三方介入流程;而且已有那么多优秀、灵活、强大、免费开源的编辑器,为这样一个功能有限的编辑器付费很奇怪。我想我只需要找一套好的 vim Markdown 配置,或者再给 Atom 一次机会。

    SwellJoe查看英文原文

    I'm working on a new book lately, and I've been trying to settle on the right workflow. I've been posting the chapters as blog entries, as I complete them, but editing in WordPress leaves a lot to be desired, and I don't really think HTML is the right authoritative source for a book. I wrote my first book, and a lot of old documentation in SGML DocBook, and then later converted it to XML DocBook...it had many benefits, and with a decent vim setup wasn't too hard to work with, and the output options were super flexible. Final format for publication was a Word doc with extensive templates provided by the publisher. All of that was a long time ago, though, and there's a lot more flexibility in where a document can start and end up in various other formats. pandoc changes the rules entirely, and markdown seems the most "native" format for pandoc. In short, I think I need to be working in Markdown. But, this doesn't look like the right tool for me, at all. A subscription service for a text editor just feels wonky. I don't really want anyone else in the workflow until I send it off to an editor or for print publication. And, the idea of paying for a text editor, especially one as limited as this one seems to be (though it has some neat tricks), when there are such good/flexible/powerful/free/open editors, seems bizarre. I think I just need to find a good set of vim settings for markdown, or give Atom another try.

    同类还值得读

    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

    关注向阳乔木

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

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

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