My solution is to make my first project in a language too complicated to be able to search around and find code snippets to incorporate. That's not to say I don't spend a ton of time searching around for tutorials or things like that, it's just that most of the things I find are at best tangentially related to what I'm doing, and just copy/pasting isn't enough to actually help me: I need to adapt what I find.<p>When I do this, I find I get a better understanding of things faster and also retain it for a lot longer.