So let me just to try something a little more interesting, and then we'll get to writing some simple programs.
让我们来试试更加有趣的,一些事情吧,然后,我们再去写一些简单的小程序。
And it makes things a lot easier, and you know, you don't have to learn building names.
这倒也让事情变得更简单,你不用背建筑物的名字了。
Thing I've got a little procedure that could do that, but you know the simplest thing I could do is to say well, gee, wait a minute, why don't I just check to see if these are the same thing?
这两个点是同一个点么?,我已经写了一小块代码,可以提供这个功能,但是你知道的我可以做的,最简单的事情就是说好,嗯?,等等,我为什么不直接去看看,这两个东西相等不相等呢?
So honestly, one of the best strategies in this course and in programming in general is-- generally speaking design, but it's these little tricks of the trade that will honestly make things much more fun, much more easier, and really allow you to focus on the juicy parts of the problem and not little tiny bugs that you may have started tripping over already.
说实在的,这堂课在编程方面最棒的策略之一,简而言之,就是--设计,但这只是一些让事情更简单,更容易的小技巧,让你专注于问题的核心关键,而不是一些可能让你绊倒的,这样或那样的小错误。
The "do you" pattern is a really good way to simply ask anything about anybody directly.
do you”句型是个非常棒的句型,它可以用来简单又直接地询问某人的任何事情。
Well basically, all I'd have to do is go through and find every place I checked the constraint, and change it. To incorporate the new constraint.
比较简单,在最上方,基本上,我做的所有事情就是遍历,整段代码然后找到我对比。
应用推荐