- 1
- 0
- 约6.53千字
- 约 25页
- 2017-03-09 发布于上海
- 举报
users用户.csclpoly
Test-Driven Learning in Early Programming Courses David Janzen California Polytechnic State University San Luis Obispo, CA Hossein Saiedian University of Kansas Lawrence, KS I Have a Dream That all students will some day… learn to design and test as they learn to program “... we have as many testers as we have developers. And testers spend all their time testing, and developers spend half their time testing.” Bill Gates in Information Week, May 2002 How to Accomplish the Dream? Test-Driven Development TDD is a design (and testing) approach involving short, rapid iterations of TDD in Action Adoption Evolution Objects Questions We Want To Answer Can we teach automated unit testing in first year programming courses without sacrificing other first year topics? Is it better to teach test-first (TDD) or test-last programming to first year students? What do students think about TDD? How Do We Teach TDD? Test-Driven Learning involves teaching testing by example Experiment Design Proposed TDD/TDL integration into CS1 and CS2 courses at University of Kansas in 2006 as part of PhD research We don’t always get what we ask for Given permission to teach two labs and assign two projects Weeks 6 and 7 in a 16-week CS1 course Weeks 1 and 3 in a 16-week CS2 course Experiment Design Experiment Context CS1 and CS2 both used C++, vi/emacs, and g++ Goal: Keep Unit Testing Simple CS1 Results: Grades Effort Project grades were virtually the same Time spent on project was ~10% higher for test-first programmers CS1 Results: Unit Tests Test-first programmers wrote more tests on the first project, but fewer on second Remember that students switched approaches CS1 Results: Confidence No difference in confidence on first project On second project, test-first programmers were more confident of their solutions (P1 tests) CS1 Results: Student Opinions CS2 Results: Grades Project grades were higher for test-first No significant difference in previous experience or gpa CS2 Results: E
您可能关注的文档
- Tissue Engineering of the Skin ele皮肤的组织工程等.uri.ppt
- Tissue Structure and Function EKU组织的结构与功能埃库.ppt
- Titel dieser Folie SMU该箔SMU的标题.ppt
- Title Bold Black 44 pt Calibri Font NRT标题黑体44 PT Calibri字体NRT.ppt
- Title Goes Here Binus University名称在这里Binus大学.ppt
- Title Goodbye, 382 Shin Dang Dong Authors Frances 标题再见382申东作者弗朗西丝.pptx
- Title Master style Arial Bold 34pt标题母版样式Arial Bold 34pt. Wikispaces.ppt
- TITLE IN ALL CAPS International Fund for Agricultural 在所有帽的标题国际农业基金.ppt
- Title Master style Arial Bold 34pt标题母版样式Arial Bold 34pt..ppt
- Title in Arial bold Subhead in Arial anaaopisa在黑体标题在标题宋体 anaaopisa.it.ppt
- 统编版2025年春季新版七年级下册历史 第21课 明清时期的科技与文化 教案.docx
- 雅安雨城法院书记员招聘考试真题库2025.docx
- 2026届安徽合肥市高考一模高考语文试卷试题(含答案详解).pdf
- 【专题研究】国内外城市更新研究的最新进展.pdf
- 【专题研究】老旧城区改造居民满意度影响因素研究——以遂宁市老旧城区改造为例.pdf
- 【专题研究】关于旧城空间改造理论与创意设计案例的几点思考.pdf
- 西藏拉萨市高三下学期期末物理备考重点详解.docx
- 泾县法院书记员招聘笔试真题2025.pdf
- 2026年春【苏教版】-六年级数学下册-面积的变化.pptx
- 2026年春【苏教版】-六年级数学下册-7.pptx
原创力文档

文档评论(0)