@SteveTheDragon thats not communism or socialism, it is capitalism. Capitalism allows people to give things away for free, and it is their choice under what terms they do so (that is the key). The fact that you can pick 20 different types of open source licenses, or none at all, is capitalism.
If it were communism you wouldnt even have the option to decide to open source your code, the government would just take it from you and then set whatever demands on you they wish on your own code.