I found a lot of questions and answers about how to protect yourself from the so called bad boys/ IP thieves and how to enforce rights. As a BSD guy myself I'm not particular interested in this and I somewhat want to turn the question around and ask exactly the opposite: How do you protect yourself from getting sued?
In theory the answer is pretty easy: Just don't copy, but in practice? Basically the borders are very unclear and vary from country to country, but the major problem still stands: After reading so many code snippets (on here, CodeProject and others), working for a couple of companies, seeing so many designs and ideas on a daily basis, how do I make sure not to copy anything unintentionally? Another question is, how do you keep track of the licenses in your code? If you take a whole library the thing is easy and clear, but what about 20 lines of code found somewhere on the net abandoned years ago? Do you care and if so how do you deal with the situation?