Another way into this problem: let's look at the comments that Dr. Johnson made about Milton's Lycidas in the eighteenth century.
看这个问题的另一个角度:让我们看看,约翰逊博士在18世纪队弥尔顿的《利西达斯》所做的评论。
So we've now whittled this problem down into half and so we can literally and dramatically throw half of the problem away.
如此一来,我们就把这个问题简化了一半,我们可以大胆的扔掉另一半。
Instead of imagining lobotomizing us, turning us into rats, suppose we just say, look, the problem is really this.
这次不用额叶切除术把我们变成老鼠,问题的症结是。
Right, so the things we want you to take away from this are, get into the habit of using pseudo code when you sit down to start a problem, write out what are the steps.
好,这儿我想大家明白的就是,养成解决问题时先写伪代码的好习惯,把步骤都写出来,我想要告诉你们的是一个好的程序员。
Piaget was really big into question and answer, but one problem with this is that children aren't very good with language, and this might lead you to underestimate how much they know.
皮亚杰非常热衷用问与答的方法进行研究,但这里存在的一个问题便是,儿童并未能完全掌握语言,这可能会导致你低估他们的理解能力
I stress it in particular because I know you're all going to get into this stage; you've got a problem set due in a couple of hours, you're still writing the code, you don't want to waste time, and I'm going to use quotes on "waste time", doing those extra things to do the defensive programming, you just want to get the darn thing done.
我特别强调了这一点,因为我知道你们都会慢慢成为程序员;,你在写代码过程中造成了一系列的错误,你还在写代码,你不想浪费时间,我想把“浪费时间“用引号圈起来,浪费时间来做因为防卫性程序设计,而带来的这些额外的事情,你只想赶紧把程序写完,这不是一个好习惯,因为当你做完回头。
And if you haven't yourself dived into your own problem set zero, whose PDFs are available online, realize that if something like this, given that it's a minute or so long, kind of looks you know, despite the cutesiness of it, kind of overwhelming in that you don't really know where to begin, how could you possibly sketch out this whole story line.
如果你还没有真正沉下心来,看习题集0,网上可以提供这些PDF文件,好好地感受一下像这样的东西,假定只有一分钟左右这么长,先不管它外表看起来是否可爱,也不管它让人无从下手的压迫感,你怎样才能勾勒出,整个故事最初的框架呢?
应用推荐