Failure is the Learning Mechanism: A Lunch with Prof Jiang

A short reflection on what Prof Jiang Kan said during lunch after the TCX1002 tutorial about programming, failure, and growth.

Lunch conversation after the tutorial yesterday, nothing formal. Prof Jiang Kan said something that landed harder than the tutorial content itself.

Programming is like life. You learn from the failures you face in tutorials, tests, and exams. The key is to hit failure, to make mistakes; we have to be open-minded to learn from mistakes and grow from that.

Prof Jiang Kan

Paraphrased but close to his words.

Why it landed

The Practical Exam a few days earlier came back 20/20. But that 20 didn’t come from getting answers right on the first try. It came from Mock Tests 1 through 9, where every wrong submission taught a specific thing. Off-by-one errors in slicing. Forgetting that .append() mutates in place. Mixing up return and print. The score came from a pile of small failures i eventually stopped hiding from.

Prof pointed this out on a specific piece of code. In PE Q4 i used a stack-based iterative solution. He said it should have been recursive: decompose into subproblems, reach for recursion, stop leaning on manual state.

The 20 marks still came through because the stack worked. But the observation was sharp. My default was “iterate and track state manually.” The better move is “describe the smaller problem and trust the call.”

What this changes for finals

Final exam is May 4. Same module. This time on Examplify, not Coursemology. Fill in the blanks of provided code. No compiler.

Two things to carry in:

  1. Recursive thinking as the default mental move when a problem has “do X, then do it again on a smaller piece” structure. Stop reaching for the stack reflex.
  2. Mistakes during prep aren’t “falling behind.” They’re the actual medium. The drills are not supposed to be clean. If every mock test goes perfectly, something is wrong with the difficulty.

To be continued

A growth-mindset line in a lunch talk can fade into a feel-good quote if i don’t tie it to something concrete. For now i’m tying it to two things:

  • Re-drilling PE Q4 recursively before the final, as a way of taking the note seriously.
  • Keeping the first attempt on any fill-blank practice rough on purpose, and reading the mistakes as data, not judgment.

Coming back to this post after the final, and after any failures that show up between now and then.

comments powered by Disqus

Recent Updates

See all →