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

    出版与作家生涯2015gitbook.com

    GitBook:现代出版工具链

    GitBook: A modern publishing toolchain

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

    导读

    这篇介绍 GitBook 这一现代出版工具链,评论者从自建写作流水线、开源格式、实际使用体验和产品命名等角度展开讨论。对写作者而言,它展示了如何用版本控制、Markdown 和自动化构建把排版琐事交给工具,从而把精力集中在写作本身。

    关键词 写作工具链版本控制Markdown自动化出版

    可以直接用的写作要点

    1. 01

      把排版、构建、错误检查等“无聊的事”自动化,让每次修改到看到成品只需一分钟,把时间留给写作。

    2. 02

      用 Git 等版本控制管理书稿,像管理代码一样管理写作历史、协作修改和发布版本。

    3. 03

      尽量用 Markdown、AsciiDoc 等纯文本格式写作,避免格式锁定,方便转换、长期维护和多端发布。

    4. 04

      面向读者的作品或产品要注意命名与体验,过于技术化的包装可能把普通读者挡在门外。

    HN 评论精选

    自建自动化工具链能大幅缩短反馈周期,让作者专注写作。

    我目前合著一本书,最终自己搭了一套工具链:带实时预览的 AsciiDoc 网页 IDE、检查常见错误的脚本(比如未闭合表格会搞乱后文)、强制内部风格规范的脚本、用 Docker 按出版社样式构建书的 makefile,以及 push 后自动构建并发布 PDF/docx 的配置。投入虽大但完全值得——推送改动约一分钟就能看到更新后的 PDF,非常自由。建议写书的人建立这样的流程或使用 GitBook 这类工具,把无聊的事处理掉,专注写作。

    aidanhs查看英文原文

    This is pretty interesting. For the book I'm co-authoring at the moment[0] I ended up putting together my own toolchain, including: 1. A dead-simple web IDE for asciidoc with live preview[1] 2. A script for checking for common AsciiDoc mistakes (e.g. an unterminated table will mess up all text following it). 3. A script which enforces the house style. 4. A makefile which runs docker (of course) to build the book with Manning styling. 5. A buildbot configuration on my server to run 2, 3 and 4 above on `git push` and move the generated pdf and docx into a directory served by nginx. Though it may seem like a lot, this investment has been totally worth it - the ability to push a change and be viewing the updated pdf in ~1 minute is very liberating. I can't imagine what it'd be like to not have this kind of thing in place. I can share some more of the above if there's interest. If you're ever thinking of writing a book yourself, I'd highly recommend making the investment into a process like the above (or a tool like GitBook, though I've never tried it and it seems to be more than just a build tool) so you can get the boring stuff out of the way and focus on what you want to be doing - writing. [0] http://docker-in-practice.github.io/ [1] https://github.com/aidanhs/AsciiDocIde

    开源格式和工具链可避免锁定,并支持社区扩展。

    我是 GitBook 联合创始人 Aaron。我们坚信开源,书籍格式和工具链都是开源的,这让我们能共同打造更好的出版工具,没有厂商锁定,开发者还可以写插件扩展功能。

    AaronO查看英文原文

    Hi I'm Aaron, one of the GitBook co-founders checking in. You are giving great feedback and I'm more than happy to answer any questions you have. BTW, in case some of you missed it, we're a big believer in open-source, in fact our book format and toolchain is open: https://github.com/GitbookIO/gitbook This allows us to build better publishing tools together, no vendor lock-in and developers can build plugins to extend GitBook's features, here's a few: http://plugins.gitbook.com/.

    版本控制和 Markdown 对写作者友好,但数据统计与定制仍有不足。

    我用 GitBook 写书,对熟悉 git 的写作者来说很友好。喜欢的点:大部分开源可折腾、版本控制、Markdown 支持、读者邮件列表、捐赠与销售、每周流量邮件、构建快、可申请教育折扣。问题:流量统计按页面加载计数,比 Google Analytics 低 2-3 倍,国家分布也明显不准;落地页定制选项不够。

    captn3m0查看英文原文

    I'm using gitbook to write a book currently (so I'm biased), but its an excellent platform for writers (especially those familiar with git). My best bits: - Most of the product is open-source, which means I can tinker with their publishing platform. - Version control - Markdown support - Mailing lists for readers (so you can send email updates) - Support for donations and selling (I'm not using it, though) - A traffic email sent every week - Builds are pretty fast - They even offer an educational discount on the pro plans if you ask nicely. A few issues I've faced: - The traffic stats are not realistic. It counts page loads, which are down by a factor of 2-3 as per my google analytics. Also, the country demographics are very clearly wrong (unless there is a readership of my book in Philippines that I don't know of) - Landing page customization. They do have a few options, but I'd like more options If there is someone who has tried both softcover.io (by Michael Hartl) and gitbook, I'd like to hear their thoughts.

    过于技术化的命名和体验会限制作品触达更广泛的读者。

    这个想法很有意思,有可能发展成真正的出版平台,但名字可能拖后腿。“GitBook”太技术化,这个名字和偏 git 的用户体验可能成为跨越早期采用者的障碍。

    bkanber查看英文原文

    Really interesting idea. I think this has the potential to grow into a real publishing platform, but also think that their name might hurt them. "GitBook" is very techie, and the name and the git-geared UX might be a hurdle towards moving past early adopters.

    同类还值得读

    1. 写书:值得吗?

      Writing a book: is it worth it?

      Martin Kleppmann(《设计数据密集型应用》作者)复盘写书到底值不值:金钱回报低、耗时极长,但带来了可见度、信任和职业机会。

      出版与作家生涯2020 · 642 分 · 287 评4 条写作要点编辑精选
    2. 写书并不是个好主意

      Writing books is not really a good idea

      这篇文章讨论靠写书谋生的现实难度,评论区从版税数学、收入预期和写作目标三个角度补充了作者视角。

      出版与作家生涯2021 · 577 分 · 609 评4 条写作要点编辑精选
    3. 如何自助出版一本书:实用资源清单

      How to self-publish a book: A handy list of resources

      这是一份关于「如何自助出版一本书」的资源清单帖,涵盖从编辑、排版到 ISBN、销售渠道的实操工具与花费。

      出版与作家生涯2018 · 558 分 · 88 评4 条写作要点编辑精选
    4. 我自助出版一本Ruby on Rails书,赚了7万美元

      How I Made $70k Self-Publishing a Book about Ruby on Rails

      这是一篇 Ruby 开发者自述:他把一套 Rails 性能课程(书+视频+答疑)自出版,一年毛收入约 7 万美元,并总结了选题、定价、营销等经验。

      出版与作家生涯2017 · 539 分 · 175 评4 条写作要点编辑精选
    5. 石黑一雄警告年轻作家因“恐惧”而自我审查

      Sir Kazuo Ishiguro warns of young authors self-censoring out of 'fear'

      石黑一雄提醒年轻作者因“恐惧”而自我审查,即这条帖子讨论的核心。

      出版与作家生涯2021 · 396 分 · 641 评5 条写作要点编辑精选

    打赏支持

    打赏二维码

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

    WeChat

    关注向阳乔木

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

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

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