In 1980, university student Steven McDowell wrote a little air traffic control simulation for the Commodore SuperPET. He thought it had been lost forever, until a few pages of old dot-matrix printouts gave him the opportunity to bring it back to life.
There were multiple magazines like that for all the various 8-bits. I have a stack of old Compute!'s Gazettes that have both BASIC type-ins as well as hexadecimal listings. And I spent hours typing those in back in the day.
I liked the BASIC ones better because they were easier to modify on the fly or after the fact. Once you’d typed in a few programs it was hard to not read and understand the program rather than just copy it.
The hex ones were more difficult, but it was often possible to pick out well-known memory addresses and opcodes giving the potential to know what and where to POKE to make subtle changes later on.
The really good listings came with a checksum program that you typed in first (once, then saved to disk or tape for future use), or even a dedicated hex editor with checksum, so that it would pick up mistakes. Not where. Only that the line you typed must have an error in it.