The first parts of Chapter 5 from Mastering Algorithms in C is up on GitHub.
Using Claude code made the exercise stupid easy. I typed the code from the book, being somewhat careful. I misses some typos, typed Lust not List, and elelment not even realizing.
Claude caught the errors. It identified the code as a learning project from the book on the first reading. There was no reason to tell it or give context. Claude figured it out.
I had it add makefiles and subdirectory *.mk files. Not a problem at all. I had to manually install CppUnit, but that was all. The tests were created automatically and run sucessfully.
This is a simple example, but if the context is kept reasonable, the code comes out clean and useable.
Next I’ll build something with the Linked lists that is actually useful.
Leave a Reply