They can even map a pathogen's genetic code, which changes from generation to generation.
VOA: standard.2010.05.05
So this means we can code for it in DNA, you don't have to worry how am I going to get into the cell.
这意味着我们可以在DNA中编写它,你不用担心它怎么进到细胞里去。
I will be posting code that you can play with, and I suggest you go through exactly this kind of exercise.
我给你一些你用的上的代码,我建议你们,多进行一些这种实验。
He says he is sending the code back to the legislature for a second reading so that it can obtain the support and understanding of Mali's citizens.
VOA: standard.2009.08.27
You will be able to infer from some of our code how in fact you can implement some more sophisticated programs.
你可以从一些代码中推断出,应该要怎样实现一些较复杂的程序。
The genetic code is said to be degenerate because I can read in one direction.
遗传密码的这种性质称为简并性,我可以从一个方向去解读
And in particular, I can then ask the following question, which is, what's different between those two pieces of code?
是有个明显的模式的,我特别要问如下的问题,这两块代码的,不同之处在哪儿?
All right, you can see that this little piece of code, it's got a loop in there, and what's it doing?
好,你们看到的这一小块代码,是做了一个循环吧?,他在做什么?
And they're awfully simple because, all I can do now, is decide whether to execute some piece of code or another.
它们之所以太简单的原因是:,现在我能做的,就是,决定执行一块代码或者执行另外一块。
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.
实际上,这个例子可以编译,因为你可以用这种方式来压缩代码行,但是请认识到,那个,不太好。
I want the function, which is a little tool, a line of code I can include in my own programs and generally those tools live in sections two or three of the manual.
我想要一个函数,那是一个小工具,在我程序中可以包含的一行代码,通常这些工具在手册的第二节,或第三节。
It's deliberate that a lot of the examples in lecture are fairly short and bite-size so that you can actually focus on pulling out the key ideas without getting distracted by line and lines of code.
很多的演讲中的例子,是短小的,因此你们可以集中于提取其中的主要思想,而不是被一行行的代码给分心。
It's a way of breaking the code up into modules. Modules that makes sense on their own. Modules that we can reuse in multiple places. Modules that, if you like, Isolate components of the process.
能将代码分解为模块,模块能够独自运作,我们能在很多地方再利用这些模块,如果你喜欢的话,模块可以被看作是过程独立的组成部分。
You can say if this is true, then go and do the following pieces of code or puzzle pieces that are inside this part of the block, else go ahead and do these that are down here.
你可以说如果条件成立,执行下面的代码段,或板块中的拼图,否则跳过去执行这下面的语句。
an interpreted language is often easier to debug, because you can still see your raw code there, but it's not always as fast.
解释语言调试起来很容易,因为你可以看到最原始的代码,但是这种语言不够快。
If I decide there's a better way to get input, and there is, then I can make it to change what I don't have to change the code that uses the input.
如果我觉得有更好的获取输入的方法,我可以直接改去用这种方式,而不用更改使用了,输入处的代码。
If you can read the code a year later, even code you wrote yourself, it's a good sign that you put good comments in, right?
如果你还能读懂1年前的代码,就算是你自己写的代码,这也说明了你放进去的注释,已经非常好了,对不对?
In a high-level language, square root might simply be a primitive that you can use rather than you having to go over and code it.
一个高级的语言,平方根可能仅仅,只是你能使用的一个基本要素,而不是你需要去编译它。
You can imagine having many lines of code where all of a sudden your closed quote is on the next line all the way on the left.
你可以想象一下,这有很多行代码,突然一个后引号,移到下一行最左边。
Having now used this pseudo code to line things up, I can start putting some additional structure on this.
用伪代码把这些事情串起来后,我可以开始进行,一些结构方面的优化了。
That is if I can write code that would solve all instances of smaller size strings, then what I just described isPalindrome will solve the larger size one.
然后我会描述如何处理大字符串,事实上这正是我所做的,我希望你能看看这边的这段代码,就是这个。
It's inside the memory of the machine, which means we have access to it, we can change it, we can use it to build new pieces of code, as well as we can interpret it.
它在机器的存储器里面,就是说我们可以进入它,改变它,可以用它来编写新代码,当然也可以翻译它。
And this adds, now, a lot of power to the kinds of code I can write.
这也大大增加了,我能写的代码的功能范围。
So this first line of code, and some of this again we'll be rehashed but at least you can delight in the awkwardness that is this demonstration.
因此,第一行代码,有些地方我们需要重新处理下,但至少看到这次,笨拙的演示你会很高兴。
> Okay. This code allocates two pointers which can point to integers.
>,好的,这段代码分配两个指针,可以指向整型数。
Yeah, if my machine will come back up, there we go. So, I'm going to now go ahead and write a little piece of code, and I put it here and I hope you can actually see these better this time, let me uncomment that region.
让我们写出代码来吧,好,如果我的电脑能回来的话,好了,那么,我要去写一小块代码,我把它放在这里以期望大家这次,能看的更清楚点。
Now, how can I use code that someone else wrote?
那么,我们怎样才能用别人写的代码呢?
Today, I'm gonna start writing C code with you but I can't just write it and expect it to do anything.
现在,我和大家一起写C语言代码,但我不指望写出来后就能跑起来。
So we can sort of check the progress of the code.
而并不仅仅是返回一个最终结果。
And you can see that in this code here.
它首先是显示出开始点和尾点的位置。
应用推荐