In reviewing it, I'd say I didn't document things quite enough, but even now it's easy to see what's going on, and why. I forgot that I saved the cursor position for each task, which is a nice thing to do for the user of the library. Overall, I'd say I did ok. After all, it was sufficiently useful enough that someone on the internet archived it for me.
If you have a sufficiently old piece of code, try that exercise out, and see how you think you did. If you can, post a link to it, and get critique.
I'll go first... here's some Turbo Pascal code I wrote back in 1987/1988 to do cooperative multitasking. -- http://www.retroarchive.org/swag/MISC/0153.PAS.html
In reviewing it, I'd say I didn't document things quite enough, but even now it's easy to see what's going on, and why. I forgot that I saved the cursor position for each task, which is a nice thing to do for the user of the library. Overall, I'd say I did ok. After all, it was sufficiently useful enough that someone on the internet archived it for me.
If you have a sufficiently old piece of code, try that exercise out, and see how you think you did. If you can, post a link to it, and get critique.