I know this is a simple example, but when you mature as a programmer, one of the first things you should do when you sit down to tackle some problem is write something like this pseudo code.
我知道这是个很简单的例子,但是当你们成长为一名程序员后,当你们碰到问题后第一件事情就是,该写一些类似于,伪代码的东西。
Sometimes students think that if they write something and they say anything, they'll get an A.
有的学生会认为只要他们随便写点什么,
说点什么,就能拿到A。
PROFESSOR: -- that this is not a quick clicker question, so you actually need to maybe write something down to figure out the answer.
教授:这个问题不是一眼就能看出来的,你们需要在纸上写一写,才能得到答案。
I'm going to write something and I'll wait until you guys tell me you're comfortable with this.
我会继续这么写,直到你们告诉我,你们已经看习惯了
So, if we write something like this, it implies this kind of equation.
当写出这样一个方程,我们不禁要问。
The essay that you read was produced at the behest of his French publisher. They wanted him to write something that would make people feel better about the book, that would give some account of its origin and give some defense for its publication and its content.
你们所读到的那篇短文就是在法国出版商的要求下写的,他们希望他写些什么来让人们对这本书产生更多的好感,来交待这本书的缘起,并且为它的内容和它的出版进行辩护。
All the groups that stand to win or lose from it are all figuring out what it does to them and they're taking the positions out of self-interest So, I wanted to write something that was more perspicacious if I could manage that.
所有人无论赞同或者不赞同这个改革,都试图搞清楚这个改革对他们将有什么影响,从自身利益来讲,想搞清楚他们究竟能得到什么,所以,如果我可以的话,我更希望我能写一些独具慧眼的东西。
So Jordan, playing the role of human is going to type or write something down on this piece of paper, GetInt hand it back to, get int.
所以Jordan,担任人类的角色,键入,或者在这张纸上写下点东西,把它传给。
But since it is my intent to write something useful to whoever understands it, it has appeared to me more fitting to go directly to the effectual truth of things than to the imagination of it.
但因为我的目的是,书写一些对任何懂的人,有用的东西,所以最合适的方式是,直接书写事情的有力事实,而非妄想。
It is just down the hall from this lecture theater. And you bring the Periodic Table and the Table of Constants and a calculator and something to write with.
就在这件教室下面的大厅那,你们带上元素周期表和常数表,还有一个计算器和一些写的东西。
It's not bad to, if you like, learn from the skills of others in order to create something you want to write.
如果你愿意,从别人那儿学习技能,用来创造你自己想编写的东西也不赖。
I wanted to tell you about early because I'm going to ask you to do something for three days and then write about that.
我提早通知大家是因为,我会让你们用三天的时间来做这个
This might be 1 in 100, 000, 000, 000 or something like that; don't write down the numbers I'm just using that for illustration.
是大约是一比一千亿那么少,不用记这个数字,我只是打个比方而已
So firms did use to write that kind of agreements, but still something went wrong.
当时的企业纷纷签订了这样的协议,但仍然有问题出现
Milton's own faculty of memory - this is the idea that I'm going to be floating here - seems to provide something like, or pose a stumbling block or an obstacle for, his attempt to write an original, divinely inspired poem.
在这里我想说,弥尔顿自己的记忆系统,似乎想提供某种东西,或者想在他写出一部原创的,伟大的诗作的尝试上设置一个障碍。
Whatever you think those are. Here, you might imagine different people disagreeing about-- oh, but throw in something--but if what you want to do is write the great American novel, then you've got the experience of staying up late at night not knowing how to make the plot work out, crushing pieces of paper and throwing them away.
你能想到的都在里面,可能有人不同意-,插入某某东西,比如你想,创作最伟大的美国小说,于是你获得熬夜的体验,纠结于如何构建情节,撕碎稿纸,扔在一边。
because when you write here, it seems like every sentence you write, you have to cite to something else anyway.
因为在这里写作的时候,似乎你写的每一个句子你都要引用其它的东西。
you know, read about something about the humanities and write about it afterwards
阅读一些人文科学的东西,然后写一些感想,
All right, so let's actually write something a little more interesting than "hello world."
好的,让我们来写点比“hello,world“,更有意思点的程序吧“
And, following a test, a lot of people write in pencil: don't try to erase something and bring it back and say that, oh, actually, this is what I had because we look at that and go, this is perfect.
还有,在测试的时候,很多人用铅笔:,不要试图擦掉什么,把它带回,说,事实上,这是我的,因为我们看了一下就走了,这很完美。
Programmers often write TODO with no space, all caps like this which means "I have to do something here."
程序员通常写TODO不使用空格,像这样的大写意思是“这里我需要做些事情“
In the most famous of these letters, the lengthy seventh one, he gives us, again, something of an autobiography and tells us a little bit about why he came to write this book.
这些书信中最著名的,是冗长的第七封,他写下类似自传的东西,并简单地讲述了,为何他要写这本巨著。
Look, part of the reason I'm flaming at you is, something like square root, it seems dumb to write specs on it. Everybody knows what this is going to do. But you want to get into that discipline of good hygiene, good style.
也是非常重要的,我在这里说的,一些理由就是像平方根,为它写规范听上去很傻,每个人都知道它是干什么的。
And last thing, something to write with.
最后一样,用来写的。
And you can write your source code in it but to compile something you don't run a command like GCC and then the name of the file, you instead click a button.
你们可以在上面写源代码,如果要编译的话,不用像GCC这样要输入命令,文件名,只需点击按钮就可以了。
So really, the rule of thumb if you think back to Scratch is -- that any time you write a statement -- -- something that does something in one line of code -- you generally need the semicolon there.
实际上,根据经验,你们回忆一下在Scratch中,任何时候你们写一条语句-,处理一些操作的一行代码-,你们通常需要在那里加个分号。
应用推荐