All right, and initially, well, maybe initially, momentum just to be simple I'm going to start false momentum equal to false.
好了,首先,为了简单起见,我会让,先等于。
But for now, it's probably simpler just always use the curly braces just to get into the habit.
但是现在,简单起见,你可以,养成每次都使用花括号的习惯。
Just for sake of argument, we'll assume it's about there, and I do the same thing.
为了方便起见,我们假定就在这里,重复之前做的。
Let's talk about velocity just for completeness.
为了完整起见,我们接下来要讲速度。
Now in fairness, that particular problem kind of happened because so many companies ended up running so much code for many more years than the programmers actually thought they would be running it, but the idea is still the same.
公平起见,那个问题有时会发生,因为实际上,很多企业在这么多年里运行了,比程序员多得多的代码,虽然他们将运行它,但那个构想还是一样的。
Is this value what I'm looking for? Again, for sake of argument, let's assume it's not.
这是我们要找的值么?,再一次,为了方便起见。
Now I look at that element. Is it the thing I'm looking for? If I'm really lucky, it is. If not, I look at the value of that point here and the thing I'm looking for. And for sake of argument let's assume that the thing I'm looking for is smaller than the value here.
现在我们瞧瞧指向的元素,它是我们找的值么?如果足够幸运,他就是,如果不是,我们比较指向的元素,同我们要找的元素,方便起见,假设要找的元素比这里的值要小。
So I'm just gonna conceptually move these aside and now, wow!
为清晰起见,我先将这些移到一边!
Try it again, just for fun.
好,娱乐起见再试一次。
应用推荐