Where did you get your videogame codes and secrets before the internet?

If you played videogames, you pretty much had to deal with the codes and secrets, but you couldn't just search Google and get it. Where did you get your secrets and codes? - word of mouth? Magazines? From the booklet?