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

    语言与文风2019autograms.net

    Autograms:会自我枚举的句子

    Autograms: Self-enumerating Sentences

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

    导读

    这篇介绍“自枚举句子/自描述句”(autogram):句子用文字统计自身字母或字符出现次数,并让陈述为真;站点还给出大量例子和变体。对写作者来说,它把严苛的计数约束、自我指涉和文字游戏变成创作方法,能训练精确用词与结构意识。

    关键词 自指写作约束写作文字游戏迭代修改

    可以直接用的写作要点

    1. 01

      先设定可检验的硬约束(如字母计数、句式或结尾),再让语言围绕约束生长,能逼出更精确、更有惊喜的表达。

    2. 02

      把自我指涉当作结构装置:让文本谈论自身,可制造谜题感、读者参与感和可验证的趣味。

    3. 03

      约束写作往往需要反复试算和修改,把草稿视为“求解过程”,记录每次迭代如何改变句意与长度。

    4. 04

      可做小练习:为自己或团队写一句“自描述”介绍,要求它准确统计自身字母或字数;先短后长。

    HN 评论精选

    自枚举句子的解空间巨大,可用程序穷举或搜索;自描述队名示例展示约束写作的趣味。

    有一种高效生成这类句子的方法(这些句子大概产自90年代):https://selfreferentialsentences.blogspot.com/。作者说用了二元决策图,但我没弄明白如何把它用到这个问题上,很想知道别人会怎么处理。可能解的空间极其庞大。我写了个程序,估计能在一个月内穷举给定“前缀”的所有解(其他解多用概率搜索)。运行12小时后,我找到我认为最好的酒吧问答队名:“这个酒吧问答队名有七个a、两个b、一个c、两个d、三十二个e、五个f、一个g、五个h、十个i、一个j、一个k、两个l、三个m、二十二个n、十七个o、一个p、一个q、五个r、二十二个s、二十二个t、一个u、九个v、十一个w、一个x、五个y和一个z。”

    jryb查看英文原文

    There's a way to generate these super efficiently (presumably, since these were made in the 90s): https://selfreferentialsentences.blogspot.com/ The author claims they used binary decision diagrams, but I haven't figured out how they were able to apply them to this problem. I'd be interested to know if anyone knows how you might approach this. The space of possible solutions is truly astronomical. I was able to write a program (https://github.com/jimrybarski/autogram) that I estimate could exhaustively enumerate all solutions for a given "prefix" in about a month (all other solutions I found do a probabilistic search). After 12 hours it found what I would argue is the best possible bar trivia team name: "This bar trivia team name has seven a's, two b's, one c, two d's, thirty-two e's, five f's, one g, five h's, ten i's, one j, one k, two l's, three m's, twenty-two n's, seventeen o's, one p, one q, five r's, twenty-two s's, twenty-two t's, one u, nine v's, eleven w's, one x, five y's and one z."

    把自指约束从字母计数扩展到哈希值,句子可以“证明”自己的数字指纹。

    我自己的版本是:让句子声明“这句话的 SHA256 以:one、eight、two、a、seven、c 和 nine 开头”,其哈希确实为 182a7c930b0e5227ff8d24b5f4500ff2fa3ee1a57bd35e52d98c6e24c2749ae0(编辑:更好的版本)。

    gtrubetskoy查看英文原文

    Here is my own version: $ echo -n 'The SHA256 for this sentence begins with: one, eight, two, a, seven, c and nine.' | sha256sum 182a7c930b0e5227ff8d24b5f4500ff2fa3ee1a57bd35e52d98c6e24c2749ae0 (Edit: a better version).

    自指句的迭代会走向固定点、循环或发散,说明约束写作是动态系统,结尾等微小设定会改变结果。

    还有这类句子:“‘z’是这句话的第一个字母。”对‘z’反复找出该字母所有位置并枚举,会得到有限句,即该过程的固定点。有些固定点不平凡,如“‘f’是这句话的第一个和第七个字母。”我对‘l’迭代时长度有限却找不到固定点,在“第一个和第二十八个”与“第一个和第二十七个”之间来回,两者都不为真;‘c’则在(1、20、56)、(1、52)、(1、22、44)间循环,也都不真。另一些会发散,如‘n’和‘e’,句子尾部每轮爆炸;结果还敏感于句子结尾“letter in this sentence”的假定。最有趣的是‘r’:100轮后长度不爆炸,但若循环则周期很长(我尚未确定)。我还找到“‘a’是这句话的第一个和第十二个字母”这类固定点,它不是从“‘a’是这句话的第一个字母”迭代来的,我觉得像 Eden 构型。

    evanb查看英文原文

    There are also sentences like 'z' is the first letter of this sentence. z yields a finite sentence, a fixed point of the procedure of finding all the instances of that letter and enumerating their positions. Some find non-trivial fixed points, like 'f' is the first and seventh letter of this sentence. My procedure for 'l' remains finite but finds no fixed point, switching between 'l' is the first and twenty-eighth letter in this sentence 'l' is the first and twenty-seventh letter in this sentence neither of which is true. 'c' cycles through (1st, 20th and 56th), (1st, 52nd), (1st, 22nd, 44th), none of which are true. Others diverge, like 'n' and 'e' 'e' is the first, sixth, [... no fixed point found ...] where the tail of the sentence just explodes on every iteration. What happens is also sensitive to the [presumed] end of the sentence 'letter in this sentence'. The most interesting one is 'r', which doesn't explode in length after 100 iterations but (if it loops, which I haven't established) has a very long period. I also found a few fixed points like 'a' is the first and twelfth letter of this sentence which doesn't come from iterating on "'a' is the first letter of this sentence"; I think it's an Eden.

    同类还值得读

    1. 像说话一样写作

      Write like you talk

      这篇短文主张写作应像说话一样自然、清晰,避免装腔作势的书面腔。

      语言与文风2015 · 647 分 · 272 评4 条写作要点编辑精选
    2. 法律语言难懂源于写作不佳,而非专业概念

      Poor writing, not specialized concepts, drives difficulty with legal language

      这是一项认知科学研究:法律文本难懂,主要不是因为充斥专业术语,而是因为写作者把句子写得又长又绕、修饰语层层嵌套、回指距离过远。

      语言与文风2022 · 559 分 · 322 评5 条写作要点编辑精选
    3. 写得简单

      Write Simply

      保罗·格拉汉姆在这篇短文里主张:好文章应该写得简单——用日常词汇、短句、直白的结构,不为显得聪明而堆砌复杂表达。

      语言与文风2021 · 484 分 · 330 评4 条写作要点编辑精选
    4. Tortured phrases:科学写作中出现的一种可疑文风

      Tortured phrases: A dubious writing style emerging in science

      《自然》新闻报道了一种在科学论文中蔓延的怪现象:原本标准的术语被同义替换软件改写成了古怪说法,比如把 "cloud computing" 写成 "haze figuring"。

      语言与文风2021 · 329 分 · 256 评4 条写作要点编辑精选
    5. 乔治·奥威尔 1940 年对《我的奋斗》的书评

      George Orwell's review of Mein Kampf (1940)

      这是奥威尔1940年对《我的奋斗》的书评。

      语言与文风2014 · 305 分 · 240 评4 条写作要点编辑精选

    打赏支持

    打赏二维码

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

    WeChat

    关注向阳乔木

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

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

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