So I had a copied manual at home, and a couple of magazines with listings, and I would write my programs in basic on paper, and emulate them in my head, to verify they work. Then when I had access to the computer at the school I would use that time to type in the program and really run it.
Thankfully my parents were able to buy for my own Spectrum clone after a while (when they become cheaper/more affordable, because the PCs finally were being imported, so a lot of local companies would move from their Spectrums to PCs) and then I could spend innumerable hours building simple move-the-cursors games directly on the hardware.