I think it's really, really important to write it out or to draw it out or to code it.
我觉得将点子写出来,画出来,编制出来,真的很重要。
So, one simple way to code intensity is the number of neurons firing; the more neurons the more intense.
影响反应强度的一个简单因素,就是产生神经冲动的神经元数量,神经元越多,反应强度越大
Suppose I want to do little piece of code that's going to do planar geometry, points in the plane.
好,因此我需要一些,把这些东西收集到,一起的一些方式。
You will be able to infer from some of our code how in fact you can implement some more sophisticated programs.
你可以从一些代码中推断出,应该要怎样实现一些较复杂的程序。
And the answer is, although neurons are all or nothing, there are ways to code intensity.
答案就是,尽管神经元服从全或无法则,但仍有许多因素会影响神经元的反应强度
And they're awfully simple because, all I can do now, is decide whether to execute some piece of code or another.
它们之所以太简单的原因是:,现在我能做的,就是,决定执行一块代码或者执行另外一块。
All right. The fourth thing I'm going to do, is I'm going to then construct the block of code.
好,我要做的第四件事情就是,我会去写这块循环代码。
You've got to do it above this chunk of code, you've got to do it inside this chunk of code.
你不得不在一大段代码之上来实现它,你不得不在一大段代码之内来实现它。
You should acquire overtime this instinctive aversion to just code or programs that just look ugly because things that look ugly generally are not easy to maintain.
对于代码和程序你会有一种本能的讨厌,这是因为这些代码和程序看起来很丑陋,并且不容易维护。
Right now, I have to take that piece of code and replicate it everywhere I want in my larger file.
现在我要把这段代码,复制到,大文件中的各个部分。
What are the basic modules, what information needs to be passed between those modules in order to make the code work.
基本的模块是哪些,为了让整个程序正常运行,这些模块之间需要传递的信息有哪些。
We want to write a piece of code that helps these guys out, so I'm going to show you an example.
通过写一段代码,来解决一个这样的问题,接下来让我们来看个例子。
In fact, this example would compile because you can use curly braces in this way to encapsulate lines of code, but realize for now, that, not good.
实际上,这个例子可以编译,因为你可以用这种方式来压缩代码行,但是请认识到,那个,不太好。
And then what I get to do inside the curly braces is literally line by line enumerate the cases that I want to apply to the following code.
然后我们在花括号中要做的是,逐行地列举接下来我想要,应用的代码。
To use an ancient expression from the 1970's, which only John and I will appreciate, it's really hard to grok what that code is doing, to understand what it's trying to make happen.
我和约翰都会同意,70年代的一句话来概括,那就是很难理解编码的内容,以及它想要完成的工作。
And I want to suggest that what we've done is, we've outlined a lot of the basic elements of programming. A lot of the basic elements we're going to need to write code.
我想提醒大家我们学习的是,我们学习了很多关于,编程的基础的东西,一些我们编写代码需要的基础的东西。
应用推荐