The distinction I made in the paper that we talked about in the class is between procedural justice and substance of justice in the university.
我曾经在一篇论文中做了一个区分,在课堂上讲到过,那就是大学程序性公正,和实质性公正的区别。
So today is about writing some programs and empowering you to write your own starting this coming week when Pset One goes out via the website tonight by 7:00 p.m.
今天我们将要写一些程序,并且让你们,在接下来的一周写你们自己的程序,今天晚上七点,习题集1会发布在网站上。
The second one is, this multiplicative constant here is 3, in some sense also isn't all that crucial.
我们需要乘的常量是,在某种意义上来说这也不是很重要,对你的程序来说要运行300年。
They actually can be used in a court of law as a stage toward arriving at a verdict.
这些词在法庭上,指审判前的一个程序。
If you're wondering what's OK or what's not OK, it's very clearly written out in this handout, so make sure you read through it, because it is your responsibility to make sure that your calculator does not have anything extra programmed in it.
如果你不清楚什么可以什么不可以,讲义上写得很清楚,所以请大家务必看完它,因为你有义务保证,在自己的计算器里,没有编上额外的程序。
And indeed, when they program these things, the programmers will feed in game after game after game of the great chess games in history.
的确,当人们编写游戏程序时,会在这些程序中,一局接一局地,输入历史上那些最伟大的棋局
So all of these programs or commands that we've been using thus far for the piece set in class, take what we call command line arguments, they are the zero or more words that follow the program's name.
所有我们一直在课堂上使用的,这些程序或者命令,携带着命令行参数,它们是跟在,程序名的后面的一个或多个单词。
When the program is on your computer you say dot slash and this means on my computer.
当程序位于你的电脑上时,敲入,就意味着在我的电脑上运行。
I'm not wasting time typing out arguments and implementing more complicated function.
我不会在浪费时间在打印输出参数上,我执行了更复杂的程序。
So, an alternative to that that is incredibly common in just the programming world and in industry is to actually not write programs on your own personal computer but to actually write and run them on a server, someplace where the software is all standardized.
那么,在编程界和工业界普遍,使用的一个解决方案是,不在你自己的电脑上写程序,而是在服务器上编程运行,服务器上的软件都是标准化的。
So in your mind, if you are now the computer program and you are executing this thing from top to bottom, what just has happened verbally is we are stepping into the line of code that says sort left half of elements.
在你们看来,如果你现在是计算机程序,正在从上到下执行一系列指令,刚才所发生的就是我们现在已执行到了这行代码,它告诉你要对左半部分的元素排序。
So this first little piece of code right here says, ok you give me 2 points, I'll create another 1 of these lists and I'll simply take the x, sorry I shouldn't say x, I'm going to assume it's the x, the x-values are the two points, add them together, just right there, the y-values, add them together and return that list.
好,为了来认识到这一点,让我们来看一个简单的小例子,在你们的课堂手册上,你可以看到我写了一个小程序,它假设我得到了,这些点中的一些,我想对它们做一些操作,例如我想把它们加到一起,那么这里的第一小片,代码的意思是,好给我两个点,我会再创建一个数组。
It's just hard to keep track of them at first but they all generally mean the same thing, provide additional input to this program called GCC by just specifying it on the command line.
刚开始是很难理解这些词的,但其实都是一个意思,所以,只要在命令行上为这个程序,再添加一个名曰GCC的输入就OK啦。
But just realize as a teaser coming for problem set 1 will be instructions on how to activate your so called cloud account and it's on the CS50 cloud that you'll be writing your programs, compiling your programs, testing your programs, running your websites ultimately.
如果大家觉得难的话,习题集1上有一些说明,教你如何,激活你的云账户,因为你们只有在CS50云上才能编写程序,编译,检测,并最终运行。
- This one was among our favorite-- "I was you at the CS50 Fair; I went to your station ; to see your program, you were my best friend; but when our hands touched as you handed me a Smiley face sticker, my heart skipped a beat.
这是我们最喜欢的-,“我和你一样在CS50大会上,我到你的网站看你的程序,你是我最好的朋友;,但是当我们牵手的时候,你传给我一张笑脸贴纸,我的心跳加速“
But on the Mac, I'm gonna run this program called Terminal.
在Mac上运行一个Terminal程序。
应用推荐