调试的智慧

罗素原话

视频网站上有段罗素的采访,全文如下:

Interviewer: One last question, suppose lord Russell this file were to be looked at by our descendants like dead sea scroll in a thousand years time. what would you thinking it’s worth telling that generation about the life you’ve lived and the lessons you learned from it.

Russell: I should like to see two things one intellectual and one moral. the intellectual thing I should want to say to them is this: when you are studying any matter or considering any philosophy ask yourself only what are the facts and what is the truth that the facts bear out. Never let yourself be diverted either by what you wish to be believe or by what you think could have been efficient social effects if it were believed but look only and surely and what are the facts. that is the intellectual thing I should wish to say. The moral thing I should wish to say to them is very simple, I should say: love is wise, hatred is foolish. In this world which is gettin more and more closely interconnected. We have to learn tolerate each other, we have to learn put up with the fact that some people say things that we don’t like. We can only live together in that way and if we are live together and not die together. We must learn the kind of charity and kind of tolerance which is absolutely vital to the continuation of human life on this planet.

调试的智慧

我们在调试非常困难的Bug的时候需要做什么?我想是观察,单纯的无带入的观察。观察这些现象(facts)。这些facts指向我们的事实(truth)本身。当遇到非常难的事情的时候我们需要做的就是静静的观察。

观察的过程中有两个注意点:

我们在做观察时候及时做记录(log),记录这些现象(facts),这些现场是反应事实(truth)的。我们得到的不重复的现象越多,我们也就更加逼近于事实。

无论我们使用什么工具,我们其实在做两件事:

记住这两点你才不会走岔路(divert).

@ 2019-06-25 23:00

Comments:

Sharing your thoughts: