eXtreme Programming (XP)是近年來最為人所熟知的快捷方法,適合十人以下,強調反覆的流程、快速回應及有效控制開發流程的輕量級軟體開發方法。 本論文用XP 的核心Test-Driven Development (TDD),提出一套適合高職程式設計課程的method,訓練學生測試驅動開發與確保程式品質(quality)的良好態度。 藉由雙人搭檔(Pair programming)、Test-Driven Development (TDD)、重整(Refactoring )、簡單設計(Simple design)等四個核心XP practices,讓學生體驗 XP 的四種價值觀:溝通(Communication)、簡單(Simplest)、回饋(feedback)、勇氣(Courage),應用在程式寫作上。 Extreme Programming (XP) is the best known agile method in recent years. It is suitable for less than ten people development team. It is a light-weight method that focuses on iterative development, quick feedback, and effective control of development process. This thesis uses a core of XP, namely, test-driven development, to design a method for high school programming teaching. The method aims to ensure good programming altitude that brings about high quality software. The method uses the XP practices of pair programming, test-driven development, refactoring, and simple design, respectively, to let the students experience the XP values of communication, simplest, feedback, and courage in their programming.