透過您的圖書館登入
IP:3.17.59.50
  • 學位論文

一個幫助初學者培養寫註解習慣的程式輔助學習系統

A CAL Methodology that Helps Novices Develop the "Good" Habit of Writing Comments in Code.

指導教授 : 夏延德

摘要


大部分的人都能認同註解對於程式理解的幫助,我們認為學生應該在課程裡學會這個觀念,但我們發現,要讓學生養成學會寫註解的習慣並不容易。由過去的經驗得知,利用傳統“老師在上面寫黑板教學,學生在下面聽講”的教學方式,在教導這些觀念時,效果非常的差。 註解並不同於國文,老師說這個字怎麼寫,學生只能照做,關於程式內的縮排或註解,並沒有一定的規範可遵循,而寫註解或縮排所帶來的好處又是無形的,因為註解對於程式的執行並沒有影響,這使得學生容易覺得麻煩又沒有幫助,要養成這些良好習慣就更加困難。 所以我們希望能找出一種方法讓學生養成寫註解的習慣,我們也想出了一種方法,希望能讓學生養成寫註解的習慣,在最後,我們也會探討這種方法的效果。 我們設計了一套結合了行為主義與社會學習理論的方法,利用一個網路的電腦輔助學習系統讓學生練習程式,希望經由我們所設計的方法,能讓學生在不知不覺中養成良好的寫註解習慣,我們給予良好的範例,而且限制學生必須觀看並了解這些範例,希望學生能從中模仿,接著讓學生利用註解來寫程式,希望學生能習慣這樣的程式寫作方式,進而能用認知式的方式來寫程式。 實驗的對象是程式設計的初學者,為選修中原大學計算機概論課程的大一學生,共109人,對照的對象則是大二與大三的學生,這些學生已經學習了超過一年的程式設計,多少應該養成了自己寫程式的習慣,我們將學生的程式碼拿來比較,觀察註解在程式碼中的比重。 結果註解的比重顯然有所增加,雖然我們也希望對註解的素質做比較,但由於註解的好壞非常主觀,因此難以評分。

並列摘要


Most people would agree that "comments in code" can help program understanding. We think that the students are supposed to acquire this idea in the academic curriculum. However, we discovered that it is not easy to foster this idea in the minds of the students. From our past experience, the use of "the instructor teacher, and the students listen" has not been an effective teaching method. Comments and Chinese are different. There are no standard for "writing comments in code". Comment not only brings advantages that are invisible, but also could not influence program execution. For these reasons, it can be difficult to help students develop the habit of writing comments in code. We hope to discover a method that helps students develop the habit of writing comments in code. We designed such a method. In this thesis, we will discuss this method. Our method uses a networked computer-assisted learning system, and is, in some way, based on behaviorism and social learning theory. First, we gave some good examples and arranged things in such a way that the students must watch and understand these examples. Then, it was hoped that the students could imitate the code given in these examples. Second, we wrote comments in the example code and hoped students would read them and use them in designing their own code. If the students can develop the habit of writing comments in code, they may improve the ways they use cognitively in developing their code. The experimental group consists of the novices. They are freshmen who took as an elective the computer science curriculum in Chung Yuan University. There were 109 of them. The comparison group consists of sophomores and juniors of the same department (the department of Information and Computer Engineering). We will compare the proportion of comments in the student's code. The result was that them was a significant difference between the "scores" of the experimental group and that of the control group. Though we also wanted to make the comparison on the quality of comments, we did not succeed in doing that.

參考文獻


[2] Eriko Nurvitadhi, Wing Wah Leung, and Curtis Cook,“DO CLASS COMMENTS AID JAVA PROGRAM UNDERSTANDING”,33' ASEE/IEEE Frontiers in Education Conference,2003.
[5] William Campbell and Ethan Bolker,“TEACHING PROGRAMMING BY IMMERSION,READING AND WRITING”, 32' ASEE/IEEE Frontiers in Education Conference,2002.
[8] Thorndike, Edward L.著,李月甫譯(2002),“人類的學習”.
[1] Clasersfeld, E. von(1989). “Constructivism in Education”, The International Encyclopedia of Education. Research and Studies.
[3] Ian Sommerville.“Softwaer Engineering”,2004.

被引用紀錄


顏志漢(2007)。以程式輔助學習系統幫助初學者培養寫分段註解習慣的探討〔碩士論文,中原大學〕。華藝線上圖書館。https://doi.org/10.6840/cycu200700418
連淑伶(2016)。運用註解學習活動改善概念迷思提升學習成效-以迴圈程式課程為例〔碩士論文,國立虎尾科技大學〕。華藝線上圖書館。https://www.airitilibrary.com/Article/Detail?DocID=U0028-0208201617332900
黃詩庭(2017)。透過合作註解學習活動改善程式設計概念迷思提升學習成效〔碩士論文,國立虎尾科技大學〕。華藝線上圖書館。https://www.airitilibrary.com/Article/Detail?DocID=U0028-1708201717170700

延伸閱讀