Nice question. One thing that annoys me a lot is the legion of developers who never try to solve sth on their own but dive asap into StackOverflow searching for hours to copy & paste sth fast. I think these guys are mostly the ones who started making a living out of coding during last 3-4 years. Guys please stop doing this and spend at least some time to try things in your own. It is part of the process to become better and stronger. How are you going to learn things or understand the deeper meaning if you are doing mostly copy & paste? Ha?
I don't say i haven't done it. I 'd be a huge liar. But i see this ugly phenomenon quite a lot recently so my proposal is yes search but first play a little with your code, make your hands dirty, try things and fail. It is good to fail so that you can grasp the hidden truth behind some funcs, understand how things work, question yourself and i am sure you will realize fast that you miss even more. This process will make you hell better and hell faster.
If you don't do this you are doomed to stay at the same level as a developer and since things change quite rapidly, i am afraid that this will cost you a lot down the road.