There was also a work-alike to StackOverflow in my pre-internet days for Turbo Pascal called 'SWAG'. It had example code snippets for all kinds of questions/problems, sorted by category.
I was surprised to find that someone made a web version out of it:
I was surprised to find that someone made a web version out of it:
http://swag.delphidabbler.com