I was given two weeks and one other programmer in Biz Stone to write the software. And we did it.
我和比兹·斯通手下的另一个程序设计师,得到了两周时间来编写软件。
But I could write that same policy and write a simulator around it and write populations around it and I could see that effect instantly with a computer.
但我可以写出同样的政策,并且为之编写出一个模拟环境,和一些模拟人群,我就可以立即在电脑上看到结果。
And we hope that at the end of the class, every time you're confronted with some technical problem, one of your first instincts is going to be, "How do I write the piece of code that's going to help me solve that?"
并且我们希望到了期末,每当你要面对一些,技术问题的时候,你们的本能之一将会是:,“我怎么才能编写一个代码,来帮我解决这问题?“
I give you a little animation that was implemented with this programming language in just a night called Raining Men.
这里有一个用这种语言编写的,叫做Raining,Men的小动画,我只用了一晚上就完成了编程。
Fabozzi, a faculty member here at Yale, has offered to give me-- we have at least one chapter from the new edition that hasn't come out yet.
法博齐是我们耶鲁的一位老师,他提议先给我...,这本尚未发行的新版中,至少一个重新编写的章节
Even if we could build a program, even if we had built programs that can be creative, that can do things that nobody's thought of before, all the program is doing is following its program, right?
即使我们能编写一个程序,即使我们已经编写出具有创造力的程序,它们可以做一些从来没有人想到过的事情,程序所做的只不过是执行程序,对吗
And so very often I would find myself with gigabytes worth of data, at night I needed to analyze this data and look for this patterns and frankly the reality was sometimes I could spend 10-15 minutes whipping up a little script, a little program that unfortunately would take eight hours or more to run.
我经常会发现十亿字节的数据,晚上我就需要分析这些数据并,找出模型,坦白说,有时,我会花10-15分钟来编写一个小脚本,一个小程序,但不幸的是,运行它可能需要8个小时或更多时间。
include cs50 h But this says include and this says include a file called cs50.h that lives in some special place on the server that the cs50 staff wrote.
这里写在,众所周知,cs50,h是由CS50的员工,编写的一个库文件。
So, the first thing I wrote for Square on the server was an admin dashboard.
所以我们为Square在服务器上编写的,第一个东西就是管理控制台。
So this is the simplest program you can probably write in this language called Scratch.
这是一个用SCRATCH语言,编写的最简单程序。
So you have to somehow convert the source code, the C code into 0s and 1s and for that process there exist this tool called a compiler that someone else wrote that takes this stuff as input and produces this stuff as output.
所以你必须把源代码,即C语言代码转换成二进制文件,这个过程就需要我们提到的编译器了,它是由别人编写的一个软件,以这些代码作为输入,将会产生的输出。
Well, for a thing called main which itself is a function but a function I wrote, a tool I am writing at the moment not like printf which someone else wrote long ago, I have to say where does main start, where does main end, and I do that by using these curly braces.
至于这个名曰main的函数,由我们自己写的函数,也是一个工具,只不过由我们自己编写,而不是像printf那样已经由前人写好了,我们必须要说明main在哪开始,在哪结束,这样我们就要用到大括号了。
And so similarly as Gmail's priority inbox, it's gonna be pretty flawed for a lot of us at least initially because it just doesn't know the answers a priori correctly unless we teach it or program it to be better. There is also another flaw in here or multiple flaws arguably.
类似于Gmail的优先收件箱,在起初使用时对大多数人来说它是有缺陷的,因为它不知道如何正确判断优先级,除非我们事先告诉它或编写程序改良它,另外这里存在一个或多个漏洞,可以说是缺陷。
应用推荐