But as part of a more rigorous introduction to understanding how the machines work and writing programs at this lower level.
作为一种,理解电脑工作机制,和在低平台上编程的入门方法。
Computer programming is a lot like learning a different language,
电脑编程很像是学习一种不同的语言,
You can bring any calculator you want, we don't actually have restrictions for calculator types here, but what you can't do, is you can't program any relevant chemical or information about constants in there.
你可以带你想用的任何一种计算器,我们并不限制计算器的类型,但是有一点是不允许的,那就是你不能使用编程的功能来记录,相关的化学常数或其它信息。
I give you a little animation that was implemented with this programming language in just a night called Raining Men.
这里有一个用这种语言编写的,叫做Raining,Men的小动画,我只用了一晚上就完成了编程。
What we're saying is, in order to do computation, we want to describe recipes, we want to describe this sequence of steps built on some primitives, and we want to describe the flow of control that goes through those sequence of steps as we carry on So the last thing we need before we can start talking about real programming is, we need to describe those recipes.
我们在说,为了做计算,我们想描述一个方法,想描述建立在,相同基本类型上的步骤序列,而且我们想描述经过我们设计的,步骤的序列的,控制流程,因此我们开始谈论真正的编程之前,的最后一件事是,我们需要描述一下那些方法。
And with like little help from the other people who are around but trying to figure out how to manage the transition from doing that most especially within the period of kind of one of the people's programming.
我们很少向他人求助,都是各顾各,但大家都试图寻找一种,改变现状的方法,尤其当你也是其中一个编程人员。
And robots, the objection goes, are programmed; they necessarily follow their program.
而且这一反驳指出,机器人是被编程的,机器人必须遵照程序做事
And we also have starting this Sunday, lead by one of the course's teaching fellows, what we call "walkthroughs," so this is kind of programming lexicon.
我们这周天开始“代码走查“,这个会由研究生助教带领大家,什么叫做“走查“,然后这是一种,编程词库。
As a matter of convention and good style which is another theme of the course that we'll focus more - on on Friday onward, it's generally good to-- good style to actually describe in English even succinct English, what your program is doing.
大家要养成一个良好的编程习惯,这是本课程另一个重要的中心思想,我会在本周五还有以后的课堂时间着重强调这个问题-,用简明扼要的语言,描述你的程序,是一种很好的编程风格。
Realize in programming languages like C, there is a set of very well-defined rules, and this is in the recommended books.
同样,在像C语言这样的编程语言里,也有,一套非常明确的规则,这些都在推荐图书里面。
And similarly, particularly for those less comfortable, do we offer prior to the start of each week for a new piece at what we dub a walkthrough whereby one of the teaching fellows will literally start on the first page, give you a mental framework for the week's problems and talk about the ideas that it covers, and then walk through the piece set so that you have a roadmap of sorts that you can follow.
同样,特别对于那些不熟悉编程跟不上进度的同学,每周上课前都可以预习新的知识点,一名教师从第一页开始,对于每周的问题,都给你们简历一个心理框架,并讨论它所涵盖的思想,然后了解了每个部分之后,就可以有个学习的路线图。
Well in C and other languages that we'll see this semester, you use what's called the for loop, and this as syntax isn't quite as straightforward but once you know what to look for, it's very easy to understand.
在C语言和一些我们这学期将要接触的编程语言中,你将会用到所谓的for循环,也许作为一种语法规则,它看起来不是那么的通俗易懂,但是你一旦知道曲中奥妙,就不难理解了。
And there is no programming language that is better well actually, that's not quite true, there are some better at doing certain kinds of things but there's nothing that you can do in C that you can't do in Fortran.
没有一种编程语言是更优秀的,当然实际上,这并不是完全对的,在做某些事儿时一些语言会更好用,但是没有事情是你能在C语言中做,而不能在Fortran中做的。
Meaning, we're going to try to help you with how to develop good programming style, but you need to write in a way in which it is going to be easy for you to spot the places that cause those semantic bugs to occur.
这意味着我们会帮助你,形成良好的编程风格,但是你需要去以一种,容易发现,程序中,容易发生语义bug的地方的方式去写代码。
A couple of really interesting consequences of that, by the way, one of them is, it says, anything you can do in one programming language you can do in another programming language.
一些真正有趣的后果是,顺便说一句,其中之一是,它说你在一种编程语言中,能做的事情,在另一种语言中也能做。
In Scratch you may have realized that, "I could implement my program this way with these puzzle pieces, but it kind of feels -- like I could use these puzzle pieces instead" -- that's absolutely the case in programming.
在Scratch中你可能已经意识到,“我可以用这一段代码来,执行我的程序,不过这有点感觉到,我可以用这些代码段来代替“,那绝对是编程中的一个情况。
And today nobody advocates a programming language that does not support it in some sort of way.
今天没有人会推荐一种,不支持面向对象编程的语言。
OK. Now, fortunately we're not going to start with Turing's six primitives, this would be really painful programming, because they're down at the level of, "take this value and write it onto this tape."
好了,现在,幸好我们能开始讲述,图灵的六个基本类型了,这会是非常痛苦的编程,因为它们只在这个阶段上,“拿到这个结果并写在这一卷磁盘上“
Well, it turns out C, like a lot of languages, comes out of the box with a whole bunch of built-in variable types.
在C语言还有其他一些编程语言里,都会有一大堆,固定的变量类型。
in graduate school I used a programming language called Perl a lot.
在研究院时,我经常使用一种,叫做Perl的,编程语言。
应用推荐