And here, too, it's just a little baby program in that I'm hardcoding the expression 17 divided by 13.
然后这里,这只是一个子程序,在那里面我硬编码了表达式“17除以13“
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.
我写了一个叫做“图表“的小程序,基于我在程序中硬编码的一些数据,向我们显示在过去几年中我们课程的人数。
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.
人们将产羊奶蛋白的基因,换成了胰岛素基因,在启动子后面的基因,原本是编码羊奶蛋白的
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,编码风格指南。
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 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.
这又回到了规范编码的想法上来了,在你写代码的时候考虑,什么会进入你的代码的思考是简单的,如果你真的知道,他们是用他们来做搜索的,而你希望有一定的灵活性,你想要阻止用户,陷入一个艰难的境地,那么异常是非常实用的。
One of the forms of processing that happens, that's very important in human gene expression is that some of the sections of the DNA molecule are not really necessary for describing the protein.
在人类的基因表达中,有一种非常重要的加工形式,那就是在DNA分子中有一些片段,对于编码蛋白质而言毫无用处
We don't expect everybody to be a course six major, contrary to popular opinion, so for those are you not in that category, the second thing we want to do is we want to help students who don't plan to major in course six to feel justifiably confident in their ability to write and read small pieces of code.
和大众意见正相反,我们不希望所有人都变成course,six的主修学生,所以对于那些不在第一梯队里的人来说,我们想做的第二件事情就是,希望帮助还不想,主修这门课的人,都能获得在自己能力范围内,读写小编码的自信。
应用推荐