Recently, I got a very interesting question that is it ok to cheat while writing code. Now that is one funny and interesting question at the same time. I would say that, yes it is completely OK to look around on stackoverflow or such reference to solve issues. Infact, when I am stuck down, I just look for solution too. That is a part of programming and you can do it without any hesitation

fb: https://www.facebook.com/HiteshChoudharyPage
homepage: http://www.hiteshChoudhary.com