There are several good forums and community based sites that can help a programmer with code suggestions.
Now, there are also good “Code Search Engines” such as Koders.com.
If you like the idea of a code search engine, you might find the following sites useful as well.
- Codase – source code search engine.
- CodeHound – The software developer’s search engine.
- Google Code Search