There are 2 kinds of programmers: Creators and Followers
Creators use the existing programming techniques to create something totally new, which has not been done before in that sense (example: AJAX). Other people then follow them and improvise on their techniques to solve their programming puzzles. People get surprised how the creators come up with all these interesting solutions, which are then posted on some forum or newsgroup for everyone else to use (copy).
However, as you might have guessed, you can never be a creator by simply going to newsgroups to find a solution of your problem. Solutions that other people have posted may or may not be the best solutions, and unless you think independently, it will not be easy find out. This does not mean that you should never look how other people have done it. I think the best approach is to come up with a solution yourself, and then compare it with what everyone else has to done rather than googling it at the very first shot. In some of the cases, you will end with the similar solution as other people, and in some, you will have your own unique solution (don't forget to compare it with others). In order to do this, you will be going through manuals/documentation of the language or tool you are using, and are most likely to learn at-least one new thing, or a better solution to something you have done in the past. You also have more confidence on how things will work than just pasting somebody else's code.
So to conclude: Think before going to google for that solution.