And here, too, it's just a little baby program in that I'm hardcoding the expression 17 divided by 13.
然后这里,这只是一个子程序,在那里面我硬编码了表达式“17除以13“
But yeah, there is some code, you know a lot of, sometimes cross browser issues
但事实上,也有些编码,你知道很多跨浏览器的问题,
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年代的一句话来概括,那就是很难理解编码的内容,以及它想要完成的工作。
Why not write the program in a way where you figure out dynamically when the program is run how much memory you need rather than hard coding in two with or within that constant.
为什么不写一个可以动态的方式写那个程序,程序可以动态分配内存,而不是用常量硬编码两个值。
The regions that are necessary for describing what the protein is like are called exons, the regions that are not are called introns.
因此我们把编码蛋白质的区域,称为外显子,而把不参与编码蛋白的区域称为内含子
Just like people have a genetic code, perhaps, that gives us various instructions that we begin to follow out, or certain innate psychology or what have you.
就像人类拥有基因编码,给我们传达各种各样,得以遵循的指示,或者是某种与生俱来的心理,等等等等
so I can tell you how Julius Caesar encoded his things.
我可以告诉你尤里乌斯·凯撒给文件编码的方式。
For instance in the past, we had that silly little program for computing the average of some quizzes and it was actually a pretty bad implementation because I had essentially hard coded in the number of quizzes.
比如在以前,我们做了一个,计算平均数的程序,这是一个相当挫的实现,因为我硬编码了测试的数字。
It is a substance self which therefore endures through time, thus thoughts and actions at different moments of time may pertain to the same self.
因此不同时期的行为和思想,可能会从属于同一个,好,那么我们怎么编码实现这个呢?,听起来像个人工智能的问题。
Last time we used printf generally to print a static string, like a hardcoded string, like "David," just for example's sake.
上次我们通常用“printf“,来打印一个静态的字符串,像硬编码的字符串“David“,这只是个例子。
There are encoding regions called exons and those are interrupted by non-coding regions called introns.
编码蛋白质的部分叫外显子,外显子被不编码蛋白质的内含子打断
So at the very top, I've coded up the same thing as before: "Give me an integer between one and ten," or rather, -- "give me an integer between one and ten" -- a little different this time.
所以在顶部,我像之前那样对同样的东西进行编码:,“给我一个1到10的整数“,或者,“给我一个1到10的整数“,这次有点不同。
It's not nearly as graphical but at least we're not hardcoding programs that are otherwise uninteresting.
这可不是绘画,我们至少不是在硬编码程序,那是没有趣味的。
And so what you'll be pointed 0 to in Problem Sets One PDF is something we call the CS50 Style Guide.
所以你们将会被指出,在习题集1中,PDF是我们CS50课堂0,编码风格指南。
That's pretty good 'cause now, I can pretty much cover my American keyboard pretty effectively both upper case, lower case, and a whole bunch of punctuation. For other languages as in aside, there are other encoding schemes when there are more characters.
那是相当不错的,它可以包含整个美式键盘中的字符,包括大小写字母和一连串标点,对于其他语言,当涉及更多字符时就会有其他的编码体系。
They put a gene like the insulin gene in place of the milk protein, but behind the promoter that is used to produce milk proteins.
人们将产羊奶蛋白的基因,换成了胰岛素基因,在启动子后面的基因,原本是编码羊奶蛋白的
Because I've hard coded the zero, it's just capitalizing they first character.
因为我硬编码了那个零,它只是把第一个字母变成大写。
The one that does is called the sense strand and the other one is called the anti-sense strand, anti meaning it's the compliment and it will hybridize to the sense.
能够进行编码的一条链叫做正义链,另一条则叫做反义链,反义的意思是它与正义链互补,并能够与之杂交
One way that you can look for that gene that you want is by making the cut in your plasmid inside of a gene that encodes for some property like resistance to an antibiotic.
一种找到成功重组质粒的方式,是在质粒控制某种特性的编码区域切割,例如,对抗生素的抗性
That might be a good way to do it but it's going to be more of a challenge because you might - you're going to have a lot of these non-coding sequences that are in the way.
这或许是个好方法,但这会带来更大的问题,因为也许--,会有许多不编码蛋白质的序列,干扰你的筛选
That goes back to that idea of sort of discipline coding. It's easy to have assumptions about what you think are going to come into the program when you writ it. If you really know what they are use them as search, but if you think there's going to be some flexibility, you want to prevent the user getting trapped in a bad spot, and exceptions as a consequence are a good thing to use.
这又回到了规范编码的想法上来了,在你写代码的时候考虑,什么会进入你的代码的思考是简单的,如果你真的知道,他们是用他们来做搜索的,而你希望有一定的灵活性,你想要阻止用户,陷入一个艰难的境地,那么异常是非常实用的。
Some of the signals control a motor which spins metal-coded platters.
一些信号控制一个用于,金属编码磁盘的旋转。
One of the strands encodes the protein, encodes for the protein, the other does not.
一条链编码蛋白质,指导蛋白质合成,另一条则不能
When a gene gets expressed, that means its protein is produced.
一段基因得到表达,就意味着合成它所编码的蛋白
I'll talk about what that means, encoding insulin means in a minute, but there's a gene that tells your body what insulin looks like and that gets transcribed but only in those cells that make insulin.
一会儿,我将会讨论基因编码胰岛素的意义,所有细胞都含有相同的胰岛素基因,它决定胰岛素的结构以及如何被转录,但是只有胰腺细胞才能产生胰岛素
The DNA that encodes the proteins that are important to the life of that cell.
只发生于编码特定蛋白质的DNA序列,这些蛋白质对细胞而言至关重要
A pancreas--cell in the pancreas, for example, needs to make insulin and so the gene for insulin is transcribed.
举个例子,一个胰腺细胞,要分泌胰岛素,那么编码胰岛素蛋白的基因就会被转录
In general, good programming style says you put in comments that are going to be valuable in helping you as a reader understand what's going on inside of the code.
通常来说,优秀的编码风格意味着,你要放进去的注释,在帮助代码阅读者,理解代码内部,是怎么工作的。
So I wrote a little program called "chart" that, based on some data I happened to hardcode into the program, shows us their numbers for the past several years.
我写了一个叫做“图表“的小程序,基于我在程序中硬编码的一些数据,向我们显示在过去几年中我们课程的人数。
We want not only for the cell to be able to synthesize the DNA, you want it to be able to express the protein off the DNA as well.
我们不仅希望细胞能复制DNA,还希望它能表达目标DNA所编码的蛋白
应用推荐