frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

25•sodokuwizard•2h ago
I'm a junior. Truth be told, I don't really care if professionals/adults see my code or pick it apart/mock it/fork it or whatever. All my repos are private just because I worry about other students being lazy and just ripping my hard work and claiming it as their own. That really pisses me off when I hear some horror stories like that.

Is this unfounded? Or do I have a right for some concern? It's obviously easier for viewers to just see public code repos and browse without ever requesting access so I know I'm losing some traffic (from my portfolio site)

I was thinking the alternative would be just linking my demo on my portfolio site as a proof of concept that yes I made it, yes it works, and if you're curious , here's a link to the code u can request independently of github.

Thank you in advance.

Comments

noir_lord•2h ago
One of the things you learn as you get older is other people don't think about you (or at all) as much you think they do/will.

We are often our own worst critics - put your stuff out there, there is little to lose and some upside, if someone likes your demo and clicks through to see the code and can see it then that's a low friction path, by having to request access most people won't or will - but forget all about it etc.

sodokuwizard•1h ago
thank you , yeah I think im overthinking this
lelandbatey•1h ago
Echoing what others have said: just post your stuff. If you're not intentionally publicizing yourself or your work, I can nearly guarantee that no one will ever even look at your work. I've been putting up my little personal projects up on my GitHub for over ten years, and yet no one's ever come around to look at them except when I intentionally posted links to those projects on places like HN.

No one's going to look unless you ask them to look. If you already have a big audience (over 100+ people daily using things you've built) no one is going to "get curious" about your projects. So just post them so folks can see them.

tchalla•1h ago
It’s a well studied psychological phenomena too.

https://en.wikipedia.org/wiki/Spotlight_effect

benoau•1h ago
Reminds of the thought experiment, "if a tree falls in a forest and no one is around to hear it, does it make a sound?"...

People you never heard of are open-sourcing projects you'll never find every day, there are hundreds of millions of repositories on GitHub and very few of them will ever be seen by humans who didn't write them, let alone humans looking to pretend they did.

Presumably someone looking at your portfolio will be reviewing CVs to hire? I think throwing up a barrier on them evaluating your code will hurt you much more than the rest of the world being able to see it.

sodokuwizard•1h ago
thats very true , and a good way of looking at it from a practical perspective

thank you

latexr•1h ago
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 not a lot more I could do about it and it’s not worth the headache.

I continue to share openly.

sodokuwizard•1h ago
do u find it typically only happened on projects that gained traction in the first place?
wahnfrieden•1h ago
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
teddyh•20m ago
> 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.

delaminator•1h ago
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.

hirako2000•36m ago
Do you see no value in publishing the code behind items in your portfolio?
drbojingle•1h ago
If it's not open source then don't make it public but if you want to lose your fear, just do it. It's not like it matters that much.
bluedino•1h ago
Wait until every line you write has to be code reviewed when you get a job.
softwaredoug•1h ago
> I worry about other students being lazy and just ripping my hard work and claiming it as their own. That really pisses me off when I hear some horror stories like that.

Make the code part of your professional marketing. It’s not code for code sake but to enable you to blog, speak, etc about something interesting. Then there’s little chance some theoretical thief is also communicating those ideas. And if you’re good at evangelizing yourself it SHOULD happen that someone steals your code. If anyone looks up the ideas, they’ll be inundated by content you created. The code is secondary.

snayan•1h ago
People have already given you practical reasons why you're better off keeping it public. To answer your question as to how to get over your fear, you need to ask yourself what you're afraid of. You've mentioned you're worried about someone ripping off your hard work and claiming it as their own. If you can understand the root of why the idea of that pisses you off, you will probably find it's an artificial construct of ego. Understand the root and the fear will loosen it's grip.
siva7•1h ago
You're severely overthinking. The Code isn't important. It's what you build with it that people care about.
kissgyorgy•1h ago
Scott Hanselman have a good blog post about this suggesting you should detach yourself from your code: https://www.hanselman.com/blog/you-are-not-your-code

Especially true when working as an employee where you don't own your code.

neilv•1h ago
I think the thieves you worry about are actually going steal your code through LLM laundering, without even knowing who it was stolen from.

If you're not going to do a startup with your code, you probably need to focus on a mix of learning and self-promotion. With the market prioritizing self-promotion. Which probably means just trying to make sure that code that reflects well on you, does so.

Which probably means making it it open source, even if AI training data companies will steal it and give it away.

alyxya•55m ago
> I worry about other students being lazy and just ripping my hard work and claiming it as their own.

Is the main concern that you have a class project you don't want other people taking credit for as their own? I wouldn't bother sharing standardized class projects that future classes may give again, and those projects don't mean much anyways. Your portfolio should ideally be projects that are something more uniquely created by you.

Also, what's specifically the issue with other students taking credit for your work as their own? In a school setting, it should be pretty clear who committed their code first. If it's for future employers, the most important thing is demonstrating full understanding of the project while being able to discuss it.

reactordev•51m ago
With LLM’s now, odds are, they’ll just copy pasta that code. Yours may be similar but if you slap a license on it, most people respect that and will adhere to it.

That said, fear of someone stealing your code is completely unfounded as there isn’t really anything novel we produce anymore. If you are on the bleeding edge, you welcome input and PR’s from others to make it better. Only wise men know they know nothing. Collectively, we can build some amazing software.

Now, if you’re trying to build a business off of your software, you may want to keep that to yourself and not share it. If your business isn’t the software but your service, there’s no harm.

fsmv•50m ago
People can fork my code all they want but to anyone actually paying attention it's obvious mine is the real one. If theirs is actually better and they actually put in more work then so be it.

But in reality the original is often the best updated and the forks will fall behind because they have to merge your changes and you don't have to do that.

munificent•48m ago
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.

lanstin•26m ago
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).
exox•48m ago
"What It Means To Be Open" by Lu Wilson is well worth watching:

https://youtu.be/MJzV0CX0q8o?si=aVmlJNuSlSyjomQa

deafpolygon•43m ago
same way you get over a fear of anything: exposure
hirako2000•41m ago
You would be surprised how code you've published is in fact not read by anyone. You would equally surprised that many do read the README.
epolanski•40m ago
You should be happy that anybody at all bothers looking at your code.
nmilo•39m ago
I mean this in the best possible way but your code is not special. Plagiarizers are gonna plagiarize and if not from you then from the other 1000 open-source student-friendly portfolio projects. Career wise you should be building up your GitHub ASAP, anyone can make a fancy looking frontend or whatever you do but I can’t know if someone is good without looking at the code (and I would probably never care enough to go out of my way to request it).
sholladay•37m ago
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 it or do much of anything with it. Thus, if someone uses it and claims it to be theirs, you can sue them if you want to.

However, instead of leaving your code unlicensed, I would recommend choosing an open source license and applying it to your code when you make it public. There are many to choose from!

By applying a license to your code, you are establishing a clear framework for what other people are and aren’t allowed to do with it. And it’s legally enforceable. In fact, there are organizations that may step in to help you if someone violates your license or challenges it in court. For example, my preferred license is the Mozilla Public License. If someone tried to challenge me on any part of that license, Mozilla would have a vested interest in defending it, since it’s their license and they use it, too. Their lawyer is even available to chat with over email. I once reached out to ask if I could make a small tweak to the license without causing headaches. They got back to me within a few days and said it would be fine. That gave me a lot of confidence to continue using it.

Some licenses are very permissive, such as MIT. Others are much more restrictive, such as GPL. The MPL, which I use, is somewhere in between.

What’s right for you really just depends on what you consider to be fair. And every project can be different. Maybe you build some small tools that you release under MIT, essentially donating them to all of humanity. Meanwhile, you create a startup and build a product where you keep some of it private and release parts of it publicly, licensed under the GPL, because you don’t want huge corporations stealing the work for your day job without reciprocating. That’s a relatively common approach.

Whatever you decide, just make some of your code public. The feedback and experience will be well worth it. Good luck!

coherentpony•34m ago
What a wonderful comment. It was educational and friendly without holding my hand too much.

Thank you.

ivanjermakov•10m ago
> If someone else steals your work, you should be proud

“Imitation is the sincerest form of flattery that mediocrity can pay to greatness.” ― Oscar Wilde

lolc•35m ago
Haha I've had instructors noting with a smile that my code was "good enough for others to copy". In the end I learned a bunch, also about people. More than if I hadn't shared.
cpursley•35m ago
By sharing it.
INTPenis•26m ago
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.

beej71•20m ago
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.

PaulKeeble•18m ago
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.

MikeNotThePope•17m ago
My recommendation is don’t internalize negative feedback from people who won’t make the time to work with you to improve. Absorb knowledge on people who invest in you.
voidfunc•12m ago
Older programmer: Nobody gives a shit about your code and nobody thinks about you as much you think they do :)

Practically it may be worth keeping code for a particular class private for the duration of the term, semester whatever so you dont get into a sticky situation where a classmate copies it and now youre defending against plagiarism and have to prove to the professor you wrote it first.

But really beyond that, nobody cares.

Love thy robot – Reflections on morals and modern AI companions

https://www.learningfromexamples.com/p/love-thy-robot
1•erikig•1m ago•0 comments

Naked mole-rat's DNA repair secret revealed

https://longevity.technology/news/naked-mole-rats-dna-repair-secret-revealed/
1•Bender•1m ago•0 comments

Lafayette Radio Electronics Holiday Gift Guide (1962) [pdf]

https://www.worldradiohistory.com/Archive-Catalogs/Lafayette-Catalogs/Lafayette-Catalog-632.pdf
1•gregsadetsky•1m ago•0 comments

DARPA has selected eleven quantum computing companies to enter the second stage

https://www.darpa.mil/research/programs/quantum-benchmarking-initiative
1•donutloop•1m ago•0 comments

Building a CI/CD Pipeline Runner from Scratch in Python

https://muhammadraza.me/2025/building-cicd-pipeline-runner-python/
1•mr_o47•2m ago•0 comments

Blue Origin New Glenn Mission NG-2 [video]

https://www.youtube.com/watch?v=e9WpN-c9VCQ
1•LorenDB•2m ago•0 comments

Google's new hurricane model was breathtakingly good this season

https://arstechnica.com/science/2025/11/googles-new-weather-model-impressed-during-its-first-hurr...
1•gnabgib•3m ago•0 comments

Texas voters approve $3B brain health research bill

https://longevity.technology/news/texas-voters-approve-3bn-brain-health-research-bill/
1•Bender•4m ago•0 comments

Hands-on Agentic AI App: LangGraph 1.0

https://eido-askayo.blogspot.com/2025/11/hands-on-agentic-ai-app-langgraph-1dot0.html
1•Gryph0n77•4m ago•0 comments

Improving memory via method of loci for digital knowledge mediums

https://studium.dev/tech/topographic-svg-loci-visual-spatial-attention
1•jerlendds•4m ago•0 comments

Local Development Setup: EventSourcingDB in 5 Minutes

https://docs.eventsourcingdb.io/blog/2025/11/10/local-development-setup-eventsourcingdb-in-5-minu...
1•goloroden•4m ago•0 comments

Study and Update on GenAI DevEx

https://techblog.cloudkitchens.com/p/study-and-update-on-genai-devex
1•janpio•5m ago•0 comments

New Glenn Mission NG-2

https://www.blueorigin.com/missions/ng-2
1•runningmike•5m ago•1 comments

The Rust version of `du` outputs wrong sizes in Ubuntu 25.10

https://askubuntu.com/questions/1559396/the-new-du-command-in-lib-cargo-bin-coreutils-outputs-wro...
1•Pr0Ger•5m ago•0 comments

Hands-on Agentic AI: LangChain 1.0

https://eido-askayo.blogspot.com/2025/10/hands-on-agentic-ai-langchain-1dot0.html
1•Gryph0n77•6m ago•0 comments

Lean4 Macros for Implementing Custom Quantifiers

https://jamesoswald.dev/posts/custom-quantifiers-lean/
1•ibobev•6m ago•0 comments

Voice phishing is AI fraud in real time

https://www.ft.com/content/2134dc55-c994-426e-98eb-ee4221819053
1•doener•7m ago•0 comments

The Beauty of Ideals

https://world.hey.com/dhh/the-beauty-of-ideals-b3dccf72
1•lopespm•10m ago•0 comments

Protect Your Consciousness from AI

https://jordangoodman.bearblog.dev/protect-your-consciousness-from-ai/
1•zekrom•12m ago•0 comments

Show HN: A platform that creates AI Agents using 'job descriptions'

https://composeai.io
1•RealzDLegend•12m ago•0 comments

U.S. Tech Layoffs Hit Two-Decade High in October

https://thefivepost.com/u-s-tech-layoffs-hit-two-decade-high-in-october/
2•mraniki•13m ago•0 comments

The Sega Master System

https://bumbershootsoft.wordpress.com/2025/11/08/the-sega-master-system/
1•ibobev•13m ago•0 comments

Longevity Misses the Mark: Why Menopause Is the Blind Spot in Aging Science

https://www.femmehealthventures.com/p/menopause-longevity-blind-spot
1•binning•14m ago•0 comments

Fire Geisha by Nah-Kolor – Revision 2025 Amiga Demo Competition [video]

https://www.youtube.com/watch?v=1WCi_9O1OaA
1•doener•15m ago•0 comments

Science fiction: the 100 best novels

https://en.wikipedia.org/wiki/Science_Fiction:_The_100_Best_Novels
2•mnky9800n•16m ago•0 comments

Nettie Maria Stevens: Celebrating the work of a remarkable geneticist

https://www.wimlf.org/blog/nettie-maria-stevens-celebrating-the-work-of-a-remarkable-geneticist
1•binning•17m ago•0 comments

Mystery 'fedora man' at Louvre heist scene revealed as teenage detective fan

https://www.bbc.co.uk/news/articles/c5ylx0g6w76o
1•binning•18m ago•0 comments

Evaluation of CO2 Disposal in the Seafloor Environment

https://www.mdpi.com/2311-5629/11/4/81
1•PaulHoule•20m ago•0 comments

Trump weighs giving Americans $2k from tariff revenues

https://www.theguardian.com/us-news/2025/nov/09/trump-tariffs-refund
3•geox•20m ago•1 comments

Text of Ove Arup's Computer Christening Speech [1967]

https://mynamelowercase.com/blog/ove-arups-computer-christening-speech-1967/
1•Gormisdomai•22m ago•0 comments