I remember downloading open source projects that I found online and combing through their source code to find out how they did something. Back in the mid 2000's I was working on a video game and I would spend hours looking through the games on pygame.org for examples. Painful process.