u/heyandy889in r/compsci • Recommends
On “Where can I learn good programming conventions and write more "clean" code?”
Along those lines, here is a demo I keep coming back to. It is a repeatable exercise ("kata") to implement a roman numeral conversion function. Admittedly, it is not a practical example, but the video clearly demonstrates the red-green-refactor cycle of test-driven development.
Jim Weirich - TDD roman numeral kata