First of all this question is not intended to be a "subjective question".
The actual specific question might be if being closed source (in web development for example) is a good protection measure.
It was this article that got me thinking: http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
Lets say you are quite a newbie to programming, but want to share the little you´ve got. Is it safe to give out you full source code?
Wouldn´t this be a detailed instruction manual on how to hack my site?
Thanks in advance!