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

    技术写作与文档2011leanpub.com

    Tell HN:我正在写一本 Erlang 食谱书,你有兴趣吗?

    Tell HN: I'm writing an Erlang recipes book, are you interested?

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

    导读

    这是一位作者在 Hacker News 上征集读者对一本 Erlang 菜谱书(cookbook)的兴趣,评论区讨论的其实是"技术书该怎么写"。对写作者来说值得一读:它提醒你,菜谱式写作的重点不在堆砌技巧,而在于用例子传递架构思路和设计原则。

    关键词 技术写作菜谱书内容定位读者需求

    可以直接用的写作要点

    1. 01

      菜谱书不要只罗列零散的小技巧,应围绕连贯的主题或设计原则来组织内容。

    2. 02

      写读者真正卡住的地方(如架构、监督树),而不是他们已经能查到的语言基础。

    3. 03

      可以按"任务导向"和"语言导向"两条线编排内容,兼顾查工具和学方法两种需求。

    4. 04

      动笔前先测试读者兴趣和付费意愿,能帮你判断这个选题值不值得写。

    HN 评论精选

    读者要的是架构层面的实战案例,尤其是如何用好 OTP behaviors 和监督树,而不是语言基础技巧。

    光讲 Erlang 语言本身的菜谱,我没多大兴趣;但如果写成 Erlang/OTP 菜谱、重点放在 OTP 上,那我百分百支持。我真正想看的是真实 Erlang/OTP 软件的架构案例。我近年主要写 Python,但做过几个 Erlang 副业项目,最难的一直是怎么把 OTP behaviors 用到位、搭出一棵能正常工作的监督树。我勉强能跑通,但总觉得不够 OTP,也判断不了自己做得对不对。

    Xixi查看英文原文

    Erlang recipes, not that much. Make that Erlang/OTP recipes with a strong emphasis on the OTP side of it, and a million times yes ! Or to say it slightly differently : I'm not that much interested in recipes about the Erlang language itself, but I'm very very interested in recipes/examples of architectures of actual Erlang/OTP softwares. I'm doing mostly Python these days, but I worked on a couple of side projects in Erlang in the past (a large one ~3 years ago, and a small one ~6 months ago). And for me the hardest was (and still is) to figure out how to use the OTP behaviors in an optimal way. How to make a nice, working supervision tree. I managed to pull working stuff out of the ground, but somehow it never fell OTPish. I couldn't tell if I did it right or wrong.

    菜谱应承载设计原则和思维方式,而非零散技巧的拼盘。

    不知道这是否和菜谱书的定位相冲突,但请考虑借这些菜谱讲连贯的主题或设计原则,而不是简单给一堆有用的小零碎。Erlang 有很独特的基础(函数式编程加上事件驱动的强大能力),相关书籍又少,这是个大好机会:教 Erlang 的思维方式,而不只是技巧合集。

    elliot42查看英文原文

    I don't know if this is antithetical to these recipe/cookbooks, but please consider teaching coherent themes or design principles via these recipes, rather than simply providing an assortment of useful tidbits. Erlang has such a unique foundation (functional programming + event-driven awesomeness) and so few books that there is a great opportunity to teach the Erlang mindset/perspective and not just a bunch of tips and tricks.

    菜谱书应把任务导向和语言导向结合起来,并给出具体的任务清单。

    感兴趣!我特别喜欢那种既任务导向又语言导向的菜谱书。比如 Doug Hellman 的 PyMOTW 就是讲解 Python 标准库的绝佳指南,这类内容会是书的重要部分。不过书里也该有一些任务导向的内容,比如:用标准 inets 服务器以及 webmachine、nitrogen、yaws 等第三方库托管静态文件的 Web 服务器;如何记录日志;如何启用追踪,等等。

    asymptotic查看英文原文

    Yes, I'm interested! I'm particularly interested in recipe books that are both task-oriented and language-oriented. For exaple, Doug Hellman's PyMOTW is a phenomenal guide to using libaries that are part of the Python standard distribution and would be a key part of the library. However, some aspects of the recipe book should be task oriented: - Web server hosting static files using the standard inets server, and 3rd party libraries like webmachine, nitrogen, and yaws. - How to log - How to enable tracing etc.

    同类还值得读

    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

    关注向阳乔木

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

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

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