I’ve been a software engineer for over 10 years now and I’ll be the first to tell you that I can’t just pull any code snippet out of my… umm… brain. And there’s nothing wrong with that! The important thing is to be a good software engineer, a good problem solver; the rest is just semantics.
So the next time you need to know how to create a thread in C++ or how to parse an RSS feed in Python, why not take a look at codefetch.com. It’s basically a search engine that lists programming languages that you select and then enter a keyword. The results list example code and help for topics that are match to your search. Pretty awesome! They also list easy links to books that you can purchase on the topic (which I’m sure helps to keep the lights on). You can also click directly on most of the programming languages listed to get to the main homepage for that given language.