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

Computer Engineering & Science

Previous Articles     Next Articles

Strategy of promoting students’ Habits
of Programming With Functions

YE Chang-chun,REN Hao,SU Kang   

  1. (School of Computing,Neusoft Institute Guangdong,Foshan 528225,China)
  • Received:2019-08-07 Revised:2019-10-03 Online:2019-12-25 Published:2019-12-25

Abstract:

The use of functions is very important in programming. In the past more than 10 years of teaching programming courses, we found that students are not used to programming with functions. Teachers need to take some strategies to encourage students to develop the habit of programming with functions. This paper describes such a targeted strategy. This strategy contains three aspects: (1) Programming examples are designed, so as to teach students four opportunities to use functions; (2) the benefits of programming with functions are discussed, including better readability, maintainability, and reusability; (3) they are trained repeatedly in later programming exercises. The effect of this strategy has been verified by practice.
 

Key words: programming with functions, readability, reusability, maintainability