Live data from Hacker News

Ask HN: How do you get over the fear of sharing code?

news.ycombinator.com

31–40 of 100 posts

Re: Ask HN: How do you get over the fear of sharing code?

#31

Truth: no-one really cares about your code We publish code so others can see it , the lazy and the productive. Lazy people do not prosper, so don't waste your energy thinking about them. Why do you want to publish yours, just as a portfolio? Then make a portfolio.

Do you see no value in publishing the code behind items in your portfolio?

Re: Ask HN: How do you get over the fear of sharing code?

#34

If someone else steals your work, you should be proud. They found it to be valuable. If they managed to sell it or build something with it, they’ve demonstrated that you can do the same. Use it as a learning experience. Keep in mind that you are in control of what people are allowed to do with your software. By default, your code is unlicensed even if it is public, which means no one else can distribute it or change…

What a wonderful comment. It was educational and friendly without holding my hand too much.

Thank you.

Re: Ask HN: How do you get over the fear of sharing code?

#35

As someone how has spent several years in therapy in part related to anxiety, the answer to "how do you get over the fear of X" is "do things that incrementally approach X". https://en.wikipedia.org/wiki/Exposure_therapy There's really no other successful approach I've seen for curing anxiety. You have to just steel yourself and do the thing you're afraid of. It gets easier every time.

An inconvenient truth. It can even become fun, but no guarantee. (I just gave an hour long presentation to a couple dozen people, and was looking forward to it, which was what would have happened ten years ago).

Re: Ask HN: How do you get over the fear of sharing code?

#36
How do you get over your fear of anything really? Build up your confidence.

If you know who you are, what you're capable of, you won't let other people's opinions hurt you.

It comes with age and experience. I don't mean programming experience either, life experience.

One can also focus on the end goal and drop that foolish pride. The goal is to have a working product, all help is welcome.

Re: Ask HN: How do you get over the fear of sharing code?

#38
post #7

I’ve had several people steal my open-source code for different projects before. I’m talking copying (not cloning) the whole thing, changing the credit to their name, making no other modifications, and then republishing on their account. Fortunately they never gained much traction. The ones I know about I blocked on GitHub with a note. No idea if they ever found out or if they tried workarounds, but I figured there’s…

What license did you use? Most licenses require that forks change the name, few require credit except for original copyright headers, and no licenses require modification

> Most licenses require that forks change the name

I was under the impression that the opposite was the case; that requiring a name change was extremely rare, but some historically important free software packages had it (one such being LaTeX, IIRC), so it was, somewhat grudgingly, considered acceptable. But no normal licenses (like BSD, GPL, Apache, etc.) requires name changes today, AFAIK.

Re: Ask HN: How do you get over the fear of sharing code?

#39
As an instructor, I think you should have your stuff private while you're a student in a particular class. Just share the repo with the instructor. The reasoning is that if someone steals your stuff, it's often hard for an instructor to tell who stole from whom. And that's just trouble you don't need. Yes, you can argue commit histories and all that, but why bother?

Once you're out of the class, there's no reason to keep it private in my humble opinion. The answers to everything every instructor gives in school is out there somewhere. And AI can solve most of them.

Re: Ask HN: How do you get over the fear of sharing code?

#40
In the age of AI it will at the very least be laundered through various commercial interests into commercial for profit tools. Depending on the license you intended to release the code under (and you should read into the various licenses and what they intend to achieve and protect and what they don't) that may or may not matter to you, but it is happening.

Fundamentally most code goes no where, no one shows much interest unless you release a hit project. It can however be really impactful in interviews and recruitment, if your code is readable and well tested and such then it can be quite a positive for the right types of organisations. So at some point you may very well want to make it public for this purpose.

Post reply on HN