今天終於把《編程方法》的課程視頻看完了,從下載課程到現在,斷斷續續學習了將近一個月,每一節課都有仔細的看完,用一個字總結的話就是 好!
這門課的課程代號是CS106A,是一門電腦的編程基礎課,講課所用到的語言是java,但課程不局限於一門語言,還講述了很多電腦底層的知識(比如記憶體堆棧的管理),還有一些軟體工程的思想,最後還帶了一下一些搜尋和排序,老師非常棒,老師的語速會很快,適應一下就好了,老師很風趣幽默,基本每節課都會有笑點,口頭禪是"Yeah,That's the life in the city."然後很注重代碼,總之就事非常好的一門課!非常適合只有一點編程基礎想要有些提高的同學,完全沒有接觸過編程的同學如果有興趣也退建嘗試。
課程用到的書籍在網上有下,視頻直接去網易公開課的網站下就OK,不過課後作業我沒有找到,做一下的話應該挺不錯的。
這門課是一些電腦課程的基礎課,比如CS106B,還有《iOS開發》,對我這樣的菜鳥還是挺必要的。
下面是自己記下的一點東西:
Write programs for people to read,not just only for computers to read.
————The first major software engineering principle.
Think about the generality of the program.Generalize your program in a way so that it's using in same sense,general principles that will apply to any world that meets your specifications.
Each method solving one problem.
Most of your methods will proably be some where between one and fifteen lines long.
The names should describe what the method is actually doing,what problem it's solving.
The important thing to think about in terms of a name is make your name descriptive.
The general rule got to remenber is give variables an intial value when it makes sense.
Most numbers that appear in a program actually have some meaning and you want to have them assigned to constant.
It's generally a bad time to have multiple of breaks inside the loop,because it makes it difficult for programmer to figure out.
stack and heap
local variable/paramater->stack(int,char,double)
static variable->static
danamic variable->heap(new object)
debugging Principal
1.Be systematic.
2.Qustion your assumption.
3.Be criticle of your code.
4.Don't panicl and eventually you get there.
發現老外做事情的一個特點,那就是一定要有趣!有趣才能真正讓自己主動去學習,有趣才會有動力,相比於國內....其實中國的學生完全不比外國的學生差,課程裡面有一節是學生的項目展示,我覺得當時我和班上另一個同學在《計算結構力學》這門課上編寫的程式絕對要好過他們評價最高的那個程式,只不過我們缺少的是一個更好的環境。
接下來就是在8月份把cs106B搞定!
2012-7-24