This is ridiculous alright you try doing this in front of hundreds of people.
在几百人面前做这样的事,确实很荒唐。
But I just try to continue doing what I'm doing, you know, and
但是我试着继续做我现在的事,嗯,而且
So we can see what it's doing is it runs. So let's try fib it here with Fib of 6.
我们可以看到它在,运行的时候做了什么,让我们试试。
And then we'll see exactly what it is that he's doing here so we're going to try to lock in on the bass.
现在我们来听一下这首歌究竟是什么样的,然后我们来尝试专攻它的低音部分。
Well, for those of you who want to try it, you probably could pass this class and maybe even get an okay grade without doing the readings.
对于有些人如果你想试试看,你很可能能够通过这门课,甚至可能得到一个不错的评级,假使你不做课外阅读。
and try to make their living doing what they love.
在那里,人们只是做着他们喜欢的事情,努力地谋生。
I'm going to let you try to figure that out qualitatively without doing any math.
我希望你们能不经数学运算,而定性判断出结论。
and try to find a place you enjoy doing it in.
找个你喜欢的地方。
And I end up going back and doing unit testing anyway, to try and figure out why it doesn't work. So over the years, I've just convinced myself I might as well start where I'm going to end up.
第一次从来不会正常运行,因此无论如何我还要回头去做单元测试,找找哪儿出错了,因此经过这么多年,我已经说服自己既然一定要做单元测试,那么还是一开始就做最好了。
We'll start up a shell and we'll try it. All right, we'll just get out of what we were doing here.
我们开一个shell然后试试,先退出现在的这个来。
I'm doing a lot of words here, let me try and say this a little bit better.
我说了一大堆话了,让我再试着说点吧。
And try and explain to them why you think your program is doing what it's doing.
向别人解释你认为的程序作用,会给你带来很大帮助。
hey'd rather single step it through using Idol or something, than just read it and try and figure things out. The most important thing to remember when you're doing all of this is to be systematic.
比起阅读代码发现错误来他们,宁愿用内置的操作层,或者其他工具一步完成,你要记住的最重要的事情,就是要系统化的去做调试。
I then click on the shell, rather than hitting F5, try and run it and say, it's not doing what I thought I should do.
然后我点击了命令解释程序,而不是按F5,我运行了程序而它,并没有按照我认为的那样做。
Ah ha, it goes into that accept portion, prints out a message, and goes back around the while loop to say try again. And it's going to keep doing this until I give it something that does serve as a float.
他会说输入一个浮点数,啊哈,它就到了那段处理代码,打印出消息,然后回到while循环让我们再输一次,它会持续这么做直到它接受到一个浮点数。
应用推荐