Productive Failure to Promote Deeper Self-Directed Learning in Coding and Robotics Education
Abstract
1. Introduction
- How should a learning environment be designed when incorporating productive failure in C&R education to promote DSDL?
- What do participants’ self-reflections reveal when incorporating productive failure in C&R education?
2. Theoretical and Conceptual Framework
2.1. Deeper Self-Directed Learning
2.2. Productive Failure
2.3. Coding and Robotics Education
2.3.1. Theoretical Lenses for Active Learning in Coding and Robotics
2.3.2. Thinking Processes in Coding and Robotics
2.3.3. Cooperative Pair Programming in Coding and Robotics
3. Materials and Methods
3.1. Methodology and Participants
3.2. Adapted Productive Failure Intervention
| Week | Phase | C&R Adapted Productive Failure Intervention | Productive Failure (Kapur & Bielaczyc, 2012) |
|---|---|---|---|
| Week 1 | Group composition | Cooperative pair programming groups, assigned randomly by the lecturer | Triads that the teacher envisages would cooperate reasonably together |
| Generation and exploration | Solvable problems, because C&R is challenging for novices | Collaborate to solve a complex problem, followed by a what-if scenario | |
| Consolidation and knowledge assembly | Self-assessment, peer-assessment and individual self-reflection | Teacher consolidates and discusses solutions | |
| Week 2 | Generation and exploration | Unsolvable problems | Complex problem, followed by a what-if scenario |
| Consolidation and knowledge assembly | Self-assessment, peer-assessment and individual self-reflection | Whole-group discussion led by the teacher. Groups share their representations and solution methods with the class. The teacher discusses solutions to well-structured problems. |
4. Findings
4.1. Findings Based on Participants’ Pre-PF Reflections
4.1.1. Reflection on Initial Challenges and Learning Needs
4.1.2. Group Cooperation Enhanced Knowledge and Skills
4.1.3. Fostering Intrinsic Motivation and Intrapersonal Competencies
4.2. Findings Based on Participants’ Post-PF Reflections
4.2.1. Persistence in Fostering Problem-Solving
4.2.2. Effective Cooperation Enhanced Learning
4.2.3. Deeper Self-Directed Learning Characteristics
5. Discussion
5.1. Incorporating Productive Failure in Coding and Robotics
5.2. Increased Depth of Post-PF Reflections
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
| DSDL | Deeper self-directed learning |
| C&R | Coding and robotics |
| CAT | Computer Applications Technology |
| DBE | Department of Basic Education |
| ZPD | Zone of proximal development |
Appendix A
- What did I learn today?
- What challenges did I face?
- How did I overcome those challenges?
- What was my “aha!” moment?
- Which process did I follow to solve the problem?
- Did I experiment or explore beyond wat was needed?
- How did I manage my time?
- How focused and engaged was I?
- Did I collaborate and receive help from others?
- What can I improve for the next session?
Appendix B
Appendix B.1. Solvable Micro:Bit Problems
- Design a simple animation using LEDs. Try making lights move like a wave or a blinking pattern.
- Use the micro:bit to make a digital pet. Make your pet react when you press buttons.
- Create a micro:bit-generated ringtone that will play a random tone.
- Display the current temperature on the micro:bit’s LED grid and show a happy or sad face based on whether it is above or below a specific temperature, and create a warning icon if the temperature goes above a specific threshold.
- Program the Micro:Bit to display a grid of multiple smiley faces, each blinking at a different interval.
- When the user clicks on button A, display a small square, then a bigger square and another larger square. The pattern must repeat until the user clicks on button B and then the number of times that the pattern repeated must be displayed.
- Find your own micro:bit problem to solve. This should be an original problem and must not be available online.
Appendix B.2. Unsolvable Micro:Bit Problems
- Morse Code Puzzle: Create a series of flashing lights and sounds using the micro:bit’s LED matrix and speaker to transmit and decode a Morse code message that reveals a clue.
- Program the micro:bit’s accelerometer to control a virtual maze on the LED matrix to find a hidden “key”. Tilt the micro:bit to navigate a ball through the maze and reach the “key”.
- Display a riddle on the micro:bit’s LED matrix and program it to accept voice input through a microphone module to answer the riddle correctly.
- Calculate the number of matchsticks required to cover the Earth’s surface. Display the result on the micro:bit’s LED matrix.
- Create a musical mixer so that when you press different buttons, the corresponding musical instruments play.
- Display all squares that can be displayed with the LED lights.
References
- Bailey, R., & Mentz, E. (2017). The value of pair programming in the IT classroom. The Independent Journal of Teaching and Learning, 12(1), 90–103. [Google Scholar]
- Beghetto, R. A. (2018). Taking beautiful risks in education. Educational Leadership, 76(4), 18–24. [Google Scholar]
- Braun, V., & Clarke, V. (2021). Thematic analysis: A practical guide. SAGE. [Google Scholar]
- Breed, B., & Bailey, R. (2018). The influence of a metacognitive approach to cooperative pair problem-solving on self-direction in learning. TD: The Journal for Transdisciplinary Research in Southern Africa, 14(1), 1–11. [Google Scholar] [CrossRef]
- Buseyne, S., Vrijdags, A., & Raes, A. (2023). Productive failure as a method for learning about effective collaborative problem solving. International Journal of Designs for Learning, 14(1), 43–58. [Google Scholar] [CrossRef]
- Cheah, C. S. (2020). Factors contributing to the difficulties in teaching and learning of computer programming: A literature review. Contemporary Educational Technology, 12, ep727. [Google Scholar] [CrossRef]
- Denner, J., Green, E., & Campe, S. (2021). Learning to program in middle school: How pair programming helps and hinders intrepid exploration. Journal of the Learning Sciences, 30(4–5), 611–645. [Google Scholar] [CrossRef]
- Department of Basic Education (DBE). (2011). Curriculum and assessment policy statement grades 10–12: Computer applications technology. Government Printing Works. [Google Scholar]
- Department of Basic Education (DBE). (2021). Call for comments to amend the curriculum and assessment policy statement (CAPS) to make provision for coding and robotics grades R-9. Available online: https://www.education.gov.za/DraftCapsCodingRobotics.aspx (accessed on 20 April 2024).
- Dhakulkar, A., & Olivier, J. (2021). Exploring microworlds as supporting environments for self-directed multimodal learning. In E. Mentz, D. Laubscher, & J. Olivier (Eds.), Self-directed learning: An imperative for education in a complex society (pp. 71–106). AOSIS. [Google Scholar] [CrossRef]
- Falon, S. L., Kangas, M., & Crane, M. F. (2021). The coping insights involved in strengthening resilience: The self-reflection and coping insight framework. Anxiety, Stress, & Coping, 34(6), 734–750. [Google Scholar] [CrossRef]
- Fegely, A., Gleasman, C., & Kolski, T. (2024). Evaluating educational robotics as a maker learning tool for pre-service teacher computer science instruction. Educational Technology Research and Development, 72(1), 133–154. [Google Scholar] [CrossRef]
- Guglielmino, L. M. (2013). The case for promoting self-directed learning in formal educational institutions. SA-eDUC, 10(2), 1–18. [Google Scholar]
- Havenga, M., & van Zyl, S. (2023). Educational robotics and computational thinking: Framing essential knowledge and skills for pedagogical practices. In R. Balogh, D. Obdržálek, & E. Christoforou (Eds.), Robotics in education: Proceedings of the RiE 2023 conference (pp. 129–141). Springer. [Google Scholar] [CrossRef]
- Hilton, M. L., & Pellegrino, J. W. (2012). Education for life and work: Developing transferable knowledge and skills in the 21st century. National Academies Press. [Google Scholar] [CrossRef]
- Hod, Y., Basil-Shachar, J., & Sagy, O. (2018). The role of productive social failure in fostering creative collaboration: A grounded study exploring a classroom learning community. Thinking Skills and Creativity, 30, 145–159. [Google Scholar] [CrossRef]
- Ioannou, A., & Makridou, E. (2018). Exploring the potentials of educational robotics in the development of computational thinking: A summary of current research and practical proposal for future work. Education and Information Technologies, 25, 2531–2544. [Google Scholar] [CrossRef]
- Johnson, D., & Johnson, R. (2019). The impact of cooperative learning on self-directed learning. In E. Mentz, J. de Beer, & R. Bailey (Eds.), Self-directed learning for the 21st century: Implications for higher education (pp. 37–66). AOSIS. [Google Scholar] [CrossRef]
- Kapur, M. (2008). Productive failure. Cognition and Instruction, 26(3), 379–424. [Google Scholar] [CrossRef]
- Kapur, M. (2015). Learning from productive failure. Learning: Research and Practice, 1(1), 51–65. [Google Scholar] [CrossRef]
- Kapur, M. (2016). Examining productive failure, productive success, unproductive failure, and unproductive success in learning. Educational Psychologist, 51(2), 289–299. [Google Scholar] [CrossRef]
- Kapur, M., & Bielaczyc, K. (2012). Designing for productive failure. Journal of the Learning Sciences, 21(1), 45–83. [Google Scholar] [CrossRef]
- Knowles, M. S. (1975). Self-directed learning: A guide for learners and teachers. Association Press. [Google Scholar]
- Li, N., Huijser, H., Xi, Y., Limniou, M., Zhang, X., & Kek, M. Y. C. A. (2022). Disrupting the disruption: A digital learning HeXie ecology model. Education Sciences, 12(2), 63. [Google Scholar] [CrossRef]
- Lodi, M., & Martini, S. (2021). Computational thinking, between Papert and Wing. Science & Education, 30(4), 883–908. [Google Scholar] [CrossRef]
- Mentz, E., van der Walt, J. L., & Goosen, L. (2008). The effect of incorporating cooperative learning principles in pair programming for student teachers. Computer Science Education, 18(4), 247–260. [Google Scholar] [CrossRef]
- Merriam, S. B., & Tisdell, E. J. (2015). Qualitative research: A guide to design and implementation. John Wiley & Sons. [Google Scholar]
- Nagy, E., Farkas, K., Balogh, Z., & Molnár, G. (2025, May 19–24). The role of robotics in digital education: A steam-based approach for curriculum development. SACI 2025, IEEE 19th International Symposium on Applied Computational Intelligence and Informatics, Timisoara, Romania. [Google Scholar] [CrossRef]
- Negi, S. K., Rajkumari, Y., & Rana, M. (2022). A deep dive into metacognition: Insightful tool for moral reasoning and emotional maturity. Neuroscience Informatics, 2(4), 100096. [Google Scholar] [CrossRef]
- Nokes-Malach, T. J., & Mestre, J. P. (2013). Toward a model of transfer as sense-making. Educational Psychologist, 48(3), 184–207. [Google Scholar] [CrossRef]
- Papert, S. (1980). Mindstorms-children, computers and powerful ideas. Basic Books. [Google Scholar]
- Pedrosa, D., Fontes, M. M., Araújo, T., Morais, C., Bettencourt, T., Pestana, P. D., Morgado, L., & Cravino, J. (2021, June 21–23). Metacognitive challenges to support self-reflection of students in online Software Engineering Education. 2021 4th International Conference of the Portuguese Society for Engineering Education (CISPEE), Lisbon, Portugal. [Google Scholar] [CrossRef]
- Prather, J., Becker, B. A., Craig, M., Denny, P., Loksa, D., & Margulieux, L. (2020, August 1–5). What do we think we think we are doing? Metacognition and self-regulation in programming. ICER ‘20: Proceedings of the 2020 ACM Conference on International Computing Education Research, Virtual. [Google Scholar] [CrossRef]
- Saldaña, J. (2013). The coding manual for qualitative researchers. SAGE. [Google Scholar]
- Sinha, T., & Kapur, M. (2019, July 24–27). When productive failure fails. Proceedings of the Annual Meeting of the Cognitive Science Society (Vol. 41, pp. 2811–2871), Montreal, QC, Canada. Available online: https://escholarship.org/uc/item/89k7p1wr (accessed on 16 April 2024).
- Skuballa, I. T., Xu, K. M., & Jarodzka, H. (2019). The impact of co-actors on cognitive load: When the mere presence of others makes learning more difficult. Computers in Human Behavior, 101, 30–41. [Google Scholar] [CrossRef]
- Socratous, C., & Ioannou, A. (2022). Evaluating the impact of the curriculum structure on group metacognition during collaborative problem-solving using educational robotics. TechTrends, 66(5), 771–783. [Google Scholar] [CrossRef]
- Steenhof, N., Woods, N. N., & Mylopoulos, M. (2020). Exploring why we learn from productive failure: Insights from the cognitive and learning sciences. Advances in Health Sciences Education, 25(5), 1099–1106. [Google Scholar] [CrossRef] [PubMed]
- Steenhof, N., Woods, N. N., Van Gerven, P. W. M., & Mylopoulos, M. (2019). Productive failure as an instructional approach to promote future learning. Advances in Health Sciences Education, 24(4), 739–749. [Google Scholar] [CrossRef]
- Stewart, W. H., Baek, Y., Kwid, G., & Taylor, K. (2021). Exploring factors that influence computational thinking skills in elementary students’ collaborative robotics. Journal of Educational Computing Research, 59(6), 1208–1239. [Google Scholar] [CrossRef]
- Sturdy, J. (2005, June 29–July 1). Sidebrain: A sidekick for the programmer’s brain. 17th Annual Workshop of the Psychology of Programming (PPIG) (pp. 215–226), Brighton, UK. Available online: https://ppig.org/papers/2005-ppig-17th-sturdy/ (accessed on 17 October 2025).
- Sweller, J., van Merriënboer, J. J., & Paas, F. (2019). Cognitive architecture and instructional design: 20 years later. Educational Psychology Review, 31, 261–292. [Google Scholar] [CrossRef]
- Van Zyl, S., & Mentz, E. (2020). Implementing guidelines for deeper self-directed learning in Computer Applications Technology education: Implications for lifelong learning. In E. Mentz, & R. Bailey (Eds.), Self-directed learning research and its impact on educational practice (pp. 67–113). AOSIS. [Google Scholar] [CrossRef]
- Vygotsky, L. S. (1978). Mind in society: The development of higher psychological processes. Harvard University Press. [Google Scholar]
- Williams, L., & Kessler, R. R. (2003). Pair programming illuminated. Addison-Wesley Professional. [Google Scholar]
- Wing, J. M. (2006). Computational thinking. Communications of the ACM, 49(3), 33–35. [Google Scholar] [CrossRef]
- Wooditch, B. (2019). Fail more: Embrace, learn, and adapt to failure as a way to success. McGraw-Hill Education. [Google Scholar]
- Yildiz, T., & Seferoğlu, S. S. (2021). The effect of robotic programming on coding attitude and computational thinking skills toward self-efficacy perception. Journal of Learning and Teaching in Digital Age, 6(2), 101–116. [Google Scholar]




Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
van Zyl, S.; Havenga, M.; Avrakotos-King, F. Productive Failure to Promote Deeper Self-Directed Learning in Coding and Robotics Education. Educ. Sci. 2025, 15, 1427. https://doi.org/10.3390/educsci15111427
van Zyl S, Havenga M, Avrakotos-King F. Productive Failure to Promote Deeper Self-Directed Learning in Coding and Robotics Education. Education Sciences. 2025; 15(11):1427. https://doi.org/10.3390/educsci15111427
Chicago/Turabian Stylevan Zyl, Sukie, Marietjie Havenga, and Fotiene Avrakotos-King. 2025. "Productive Failure to Promote Deeper Self-Directed Learning in Coding and Robotics Education" Education Sciences 15, no. 11: 1427. https://doi.org/10.3390/educsci15111427
APA Stylevan Zyl, S., Havenga, M., & Avrakotos-King, F. (2025). Productive Failure to Promote Deeper Self-Directed Learning in Coding and Robotics Education. Education Sciences, 15(11), 1427. https://doi.org/10.3390/educsci15111427

