3 ms·
I have tried teaching TDD to complete beginners (mandated curriculum), and it was a disaster. Unfortunately, only a few students were able to write tests that m
by psyklic 10y ago
I have tried teaching TDD to complete beginners (mandated curriculum), and it was a disaster. Unfortunately, only a few students were able to write tests that meaningfully deviated from the examples we discussed. The issue is they were struggling with writing the main routines themselves. So, writing tests that did nothing initially (and gave no feedback) was very difficult. They often could not tell if they were doing it correctly.
- wpietri 10y agoI'd believe it. What I have seen work is automated tests used as a way to guide learners forward. A friend did it to teach Ruby novices and he was very happy with the approach. I even got to try it myself recently. The IntelliJ people have a nice setup for learning their new language Kotlin. Every exercise is driven by automated tests: http://try.kotlinlang.org/ http://try.kotlinlang.org/ I'd love to see this approach tried seriously with programming novices. Partly because I think it's a good learning experience. And partly because people get used to testing from the beginning.