Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

You would have to not host your code publicly either, right?


sort by: page size:

Nobody is forcing anybody to make their code public. It's their choice. You can have your code on your machine and on your servers only. Hosting your code is an option.

So you're not going to make the code public?

And how would you enforce that? What would prevent anyone with access to the code from building it and using it? I don't see any way except maybe stripping the code of significant parts

N/A. All of my code handles private data (don't most revenue-generating programs?) and I can't/won't send my code to a third-party server.

I’m not putting my code on that! I can’t imagine anyone being allowed to upload production code

Is your code public?

that way you can use open source and don't share your code :)

If it is a static website I don't think making the source code public will hurt much ;)

Sure, but there's no technical measures in place that can stop me from publishing the code.

Making code public does not imply support. Of any kind. Those are very, very different things.

I am under the understanding that if you don't want your code to be used in proprietary projects then you should not post it on SO. I could be wrong though. I also think you could get around this by link to your code hosted elsewhere but I believe this is frowned upon.

Doesn't doing it this way mean that there will be a publicly accessible URL containing your code? This would be a good caveat to mention.

Yes? What do they have to gain from the code not being public?

And what prevents you from downloading the code, compiling it yourself and using it for any number of users?

Sure, but that's only because if it's your own code, you don't have to follow any rules at all. You can do whatever the heck you want, up to and including making the whole thing closed source.

is all your code public?

No, the only way is to make your code closed source.

I post my code publicly, but with an "all rights reserved" licence. I don't mind everyone reading my code freely, but you can't use it for anything but learning. If I found out they were ingesting my code I would be angry. It's like training your replacement. I don't use GitHub, anyways, but now I'll definitely never even think about it.

Like public code on Sourcehut won't be gobbled up...
next

Legal | privacy