计算机程序设计课程已成为普通高校本科教学中的公共基础课程之一。目前,关于该课程的一个较普遍的问题是课程结束后学生的实际程序设计能力依然比较差,所编写出来的程序的代码质量不高。原因之一是学生没有养成良好的程序设计风格。着重探讨程序设计风格养成的重要性,以及如何在课程教学中引导学生重视并养成良好的程序设计风格。
The course of computer programming becomes one of the fundamental courses for undergraduate students and those who do not major in computer science. When the course is completed, however, many students' practical programming abilities are still poor, and the quality of their codes is low. This paper focuses on one of the reasons, that is, the students do not possess a good programming style. We present the importance of training a good programming style and how to help students to improve their programming styles in the course of teaching.