让 Claude Code 用起来更顺手的妙招

1作者: JSR_FDED9 个月前
我对 Claude Code 感到敬畏,但同时每天也会咒骂它很多次。我最近开始做的一件事对我的心理健康产生了很大的影响,也让我更喜欢使用它,那就是这个愚蠢的技巧…… 简单地忽略它在任务结束时说的话。 那些自吹自擂或程序员的自我陶醉,例如:“完美!这个小玩意现在在烧毁之前会先起作用,这使得用户体验更好,并提高了系统的多功能性”(当然,还伴随着几行绿色的对勾)……这让我抓狂。为什么?因为它告诉我它已经完成了所有这些事情,所以我相应地调整了我的代码的心理模型。但事实证明,它实际上根本没有完成所有这些事情。 如果这是一个你分配了任务的初级开发人员,他们回来后对自己的出色工作大加赞赏——然后结果却搞砸了,几次之后,你就要和人力资源部门谈话了。 所以,相反,让任务结束时所有这些东西滚过去,训练你的眼睛忽略它,然后只测试它是否按预期工作。Claude Code 不再是我的伙伴,它现在只是一个工具。理智恢复了。
查看原文
I&#x27;m in awe of Claude Code, but I also curse it many times a day. One thing that I&#x27;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. &quot;Perfect! The thingamajig now frobbles before it frazzles, making this a much better experience for the user and improving the versatility of the system&quot; (and of course accompanied by several lines with green checkmarks)...this drives me nuts. Why? Because it told me it&#x27;s done all these things, so I adjust my mental model of the code accordingly. But then it turns out it actually hasn&#x27;t done all those things at all.<p>If this was a junior dev you&#x27;d given a task to, and they came back full of praise for themselves for the stellar job they&#x27;d done - and then it turned out they&#x27;d botched it badly, after a few times you&#x27;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&#x27;s working as intended. Claude Code is no longer my buddy, it&#x27;s now a tool. Sanity is restored.