• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学

• 论文 • 上一篇    下一篇

程序设计教学中学生程序设计风格的养成

陈立前,李姗姗,叶常春   

  1. (国防科学技术大学计算机学院,湖南 长沙 410073)
  • 收稿日期:2015-08-09 修回日期:2015-10-16 出版日期:2016-11-26 发布日期:2016-12-26
  • 基金资助:

    国家自然科学基金(61202120)

Programming style training in programming teaching

CHEN Liqian,LI Shanshan,YE Changchun   

  1. (College of Computer,National University of Defense Technology,Changsha 410073,China)
  • Received:2015-08-09 Revised:2015-10-16 Online:2016-11-26 Published:2016-12-26

摘要:

计算机程序设计课程已成为普通高校本科教学中的公共基础课程之一。目前,关于该课程的一个较普遍的问题是课程结束后学生的实际程序设计能力依然比较差,所编写出来的程序的代码质量不高。原因之一是学生没有养成良好的程序设计风格。着重探讨程序设计风格养成的重要性,以及如何在课程教学中引导学生重视并养成良好的程序设计风格。

关键词: 程序设计, 程序设计风格, 编程规范, 编程规则

Abstract:

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.

Key words: computer programming, programming style, coding conventions, coding rules