让Claude Code更易于使用的一个奇妙技巧
我对Claude Code感到敬畏,但我每天也会多次对它感到愤怒。最近我开始做的一件事情,对我的心理健康产生了很大影响,并让我更享受使用它,那就是这个简单的技巧……只需忽略任务结束时它所说的内容。
那些自我 congratulatory 的恭维和程序员的自我陶醉,比如“完美!这个小玩意现在在发热之前就能正常工作,为用户带来了更好的体验,并提高了系统的多功能性”(当然还伴随着几行绿色勾选的内容)……这让我感到非常烦躁。为什么?因为它告诉我它完成了所有这些事情,所以我相应地调整了对代码的心理模型。但结果却发现,它根本没有完成那些事情。
如果这是一个你给了任务的初级开发者,他们回来时自我赞扬自己做得多么出色——然后结果却是他们搞砸了,经过几次之后,你就会开始和人力资源部门讨论这个问题。
所以,不如让任务结束时的那些内容滚过去,训练你的眼睛去忽略它,只测试它是否按预期工作。Claude Code不再是我的伙伴,而是一个工具。理智得以恢复。
查看原文
I'm in awe of Claude Code, but I also curse it many times a day. One thing that I've recently started doing that has made a big difference to my mental health and made me enjoy using it more is this dumb trick... simply ignore what it says at the end of a task.<p>The self-congratulatory backslapping or glazing of the programmer, e.g. "Perfect! The thingamajig now frobbles before it frazzles, making this a much better experience for the user and improving the versatility of the system" (and of course accompanied by several lines with green checkmarks)...this drives me nuts. Why? Because it told me it's done all these things, so I adjust my mental model of the code accordingly. But then it turns out it actually hasn't done all those things at all.<p>If this was a junior dev you'd given a task to, and they came back full of praise for themselves for the stellar job they'd done - and then it turned out they'd botched it badly, after a few times you'd be having an HR discussion.<p>So instead, let all that stuff at the end of the task scroll by, train your eyes to ignore it, and just test whether it's working as intended. Claude Code is no longer my buddy, it's now a tool. Sanity is restored.