离上一次上Ana的课已经过离半个月了,自己的执行力和自律性还是不够,继续努力。 很想在FLAG中的一家企业工作,这是现阶段的人生目标。
GOOD PROGRAMMING
- more code not necessarily a good thing
- measure good programmers by the amount of functionality
- introduce functions
- mechanism to achieve decomposition and abstraction
ABSTRACTION IDEA: do not need to know how projector works to use it DECOMPOSITION IDEA: different devices work together to achieve an end goal
CREATE STRUCTURE with DECOMPOSITION
in programming, divide code into modules • are self-contained • used to break up code • intended to be reusable • keep code organized • keep code coherent
SUPRESS DETAILS with ABSTRACTION
in programming, think of a piece of code as a black box • cannot see details • do not need to see details • do not want to see details • hide tedious coding details
VARIABLE SCOPE
- formal parameter gets bound to the value of actual parameter when function is called
- new scope/frame/environment created when enter a function
- scope is mapping of names to objects
这节课内容主要就这些,最近也在看《Java核心技术卷一》,一本美国教授写的书,感受最大的不同在于《Java核心技术卷一》很像一本技术大全,几乎囊括了所有Java这门语言的知识点。而Ana上课给人的感觉是一种启发式,开放式的教学。教学内容看似很简单,但是对于MIT刚接触编程的人来说却是一门很好的入门课程,这大概就是教育真正的目的,教会学生找到自己的兴趣所在,激发最原始的求知欲而去自主学习。不得不说MIT真的是一所顶尖的学校,很想去看看,哪怕是旁听一门课程,也感觉此生无憾了。 感谢互联网,感谢MIT,感谢OCW。 我们生活在一个最好的时代。