📰 2026-03-17 19:30 更新
🔸 Grace Hopper’s Revenge / 格蕾丝·霍珀的复仇
🔗 Grace Hopper’s Revenge
🔥 24 points
原文:
The world of software has lots of rules and laws. One of the most hilarious is Kernighan’s Law:Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.I’ve always understood Kernighan’s Law to be about complexity—about keeping the code you write as simple as possible to reason about. With LLMs now I’m learning it has a lot to do with language design too.I’m still seeing a …
译文:
软件世界有很多规则和法律。其中最有趣的是Kernighan定律:调试的难度是编写代码的两倍。因此,如果您尽可能巧妙地编写代码,那么根据定义,您就不够聪明,无法对其进行调试。我一直认为Kernighan定律是关于复杂性的,即尽可能简单地推理代码。现在有了法学硕士,我学到了很多东西 语言设计也是如此。我仍然看到……
自动更新 · 正文抓取 · 双语翻译