As a compulsory course for vocational computer majors,programming courses have a significant impact on students'professional growth and career development.However,in the teaching practice of vocational programming courses,most teachers often focus on imparting knowledge points and practicing skill operations,while neglecting the inherent connection between new and old knowledge.The article is based on the primary teaching principle proposed by Merrell,with the focus on solving practical problems and the requirement of coherent teaching of knowledge points.It explores how to construct the teaching design process of programming courses,and takes the"Bubble Sorting"lesson in programming courses as an example for teaching design,in order to provide reference for vocational school programming course teachers.