both
stifles competition to protect the uniqueness and marketablity of a product - good if you invented it.
on the other hand, if this protection was not in place, people would not be interested in innovating because another company could just rip their code and all of a sudden everything they worked so hard for is not that special anymore