返回资讯中心
外部精选
软件工程
#开发者实时流

Git 命令行提示语为何使用第一人称拟人化表达

来源标题:Anthropomorphic Software

Git 等工具在报错和交互提示中使用第一人称拟人化文案,例如提交时提示“请告诉我你是谁”、rebase 时表示“我正在停止”。作者将这类程序称为“拟人化软件”,并指出 LLM 等对话式 AI 不在其列,仅会在文末讨论。

Hacker News 最新birdculture2026/11/15 · 今天9 分钟阅读

以下正文由 AI 翻译自 Hacker News 最新(原文版权归原站所有),可能存在偏差,重要内容请以原文为准。

有些程序我喜欢称之为拟人化软件。这类程序的第一人称文案是人格化的。我想做一个区分:LLM 和其他对话式 AI 不算在内。不过,我会在最后谈谈它们。

一个熟悉的例子是 Git。你有没有试过在刚装好的系统上创建一次提交?你可能会遇到这个错误: *** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" 对于一个主要用途是追踪错误的工具来说,这话说得相当私人。

在 Git 发现已有进行中的 rebase 时再启动一次 rebase。它还会说“再运行我一次”和“我要停下来了。” I wonder if you are in the middle of another rebase.

在交互式终端里,在开始 bisect 之前先标记一个修订版本。 Do you want me to do it for you [Y/n]?

我最喜欢的一个。在 git bisect 期间,跳过足够多的提交,让 Git 无法进一步缩小答案范围。 We cannot bisect more!

顺带一提,Git 的变更日志也是人格化的: "git fsck" learned to catch NUL byte in a commit object as potential error and warn. CI test was taught to build documentation pages.

Hmm... I can't seem to find a patch in there anywhere. Looks like a unified diff to me...

GNU tar 命令: Cowardly refusing to create an empty archive

Elm 编程语言是一个极端的例子。 webpack 5.69.1 compiled with 1 error in 55 ms Detected problems in 1 module.

-- EXTRA COMMA ----------------------------------------------------- src/App.elm I am partway through parsing a record, but I got stuck here: 16| { init = _ -> init 17| , view = view 18| , update = update,, ^ I am seeing two commas in a row. This is the second one! Just delete one of the commas and you should be all set!

Note: If you are trying to define a record across multiple lines, I recommend using this format: { name = "Alice" , age = 42 , height = 1.75

我喜欢这种效果——在克制使用的时候,不像 Elm 那样。

启用这个选项后,如果你输入了错误的密码,sudo 会骂你: Defaults insults team@itsfoss:$ sudo apt update [sudo] password for team: When you're walking home tonight, and some homicidal maniac comes after you with a bunch of loganberries, don't come crying to me! [sudo] password for team: I'm very sorry, but I'm not allowed to argue unless you've paid. [sudo] password for team: sudo: 3 incorrect password attempts team@itsfoss:$ sudo apt update [sudo] password for team: You'll starve! [sudo] password for team: You can't get the wood, you know. [sudo] password for team: sudo: 3 incorrect password attempts team@itsfoss:~$

如果你曾经尝试过 Linux From Scratch,你就会知道 Bash 可以在提示符里说“I have no name!”。

在 9 月 1 日,用 -v 运行 Nmap 会让它祝自己生日快乐。 Happy 29th Birthday to Nmap, may it live to be 129!

它还会在 12 月 25 日祝用户圣诞快乐。

如果你还知道更多例子,我很乐意把它们列在这里。

LLM agent 是拟人化软件的终极形态。但 agent 不必听起来像人。为了我自己心智健全,我强制我的 agent 不要像人那样说话。未来,agent 可能会成为计算机用户界面的默认范式。到那时,我会怀念拟人化软件。

这种效果的多数用法纯粹是为了趣味,并不是为了改善用户体验。Apple 的用户界面指南规定,要避免出现包含“uh-oh!”和“oops”的错误消息。

Compiler Errors for Humans (elm-lang.org)

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →