TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Debug like a doctor

3 点作者 ecmendenhall将近 10 年前

1 comment

punch_card将近 10 年前
This is the worse advice I have ever seen. This kind of 'doctoring' ends up with "take this pill, if it doesn't work come back'. (lets change that for loop to start with 1 instead of 0. problem still there ? hmm could be that equation is wrong...) How about this ? Take an X-Ray. See what is broken. Cut into the body, see what is broken. Same with software. The 'symptoms' are very diffuse and do not map 1 to 1 with the 'disease'. Use the debugger. Capture outputs at intermediate steps and evaluate them. Dig into the system to identify the actual problem, then fix that.