A big difference is plumbers use interchangeable parts and you are mostly paying for their time and skill. With closed source software, you are getting a blackbox that you can't extend beyond what the creators allow and the creators will only extend so long as they are in business. After that it might still be usefull but a liability or can be useless.
I don't mind sharing software that I wrote for myself if it's useful to other people.
I can see why people would sometimes program for fun.
So there are many devs out there that want to win the jackpot. I don’t blame them.
What I understand here is that you don't contribute to open source projects, but you think that you can understand the motivation of those who do. Let me be honest: I think you don't.
There are many reasons to contribute to open source, and those who believe they will get a salary from sponsors or become famous are naive beginners.
You need to write your own story for people to be aware of it. What most people who have any sort of name recognition have in common is that they're good at crafting a narrative.
What sets John Romero apart from the next level designer is that John Romero loves talking about John Romero.
Your blog is much more important than your git repo. I don't think talking alone is enough, but it is extremely to put yourself out there.
You should open source your code if you don't see a benefit in keeping it closed (usually "you won't sell it" is a good reason). Then maybe some people will contribute to it and improve it: bugfixes, new features, etc. That's great! But every single line you merge becomes your responsibility, so you should only merge it if it improves your project in your opinion. Maybe the feature is great but it is complex, and you don't want to maintain that: it's okay, don't merge it and let the author fork!
Do NOT implement feature requests for free, because this is charity. Either you help people contribute it or you clearly tell them that you won't merge that (but that they can implement it in their fork). Unless they are willing to pay for your work, in which case it's not charity anymore. And because you get paid to implement it does not mean you have to support it for 10 years: once it's implement it, they can fork the project with their feature, and you don't owe them anything anymore.
Your responsibility to whom?
- If your build breaks in the future because of this, nobody will come help you.
- If you decide in the future that you want to cross-compile to a new platform and porting contributed code is a big pain, that's on you.
- If the contributed code results in crashes for some users, they will come back and complain to you.
- Etc.
Sometimes it is very low-risk, i.e. you know for sure that it won't impact many users or that it is easy to revert if necessary.
Sometimes it has a fundamental impact on your codebase, and if you build on top of that then it will be very hard to "just revert".
It's the job of the maintainer to decide what kind of risk they are willing to take. The thing is that many contributors don't understand that and put a lot of pressure to force their contribution in. And that's how you end up burning out the maintainers who try to be nice.
Apples to oranges; if a carpenter tried to sell me a chair that could take actions against my best interests and that could just disappear or stop working one day or that I wasn't allowed to repair myself, I also wouldn't even start to think of getting one. I avoid proprietary software because it has a long history of going out of its way to screw users over; that it often costs $0 is secondary.
Writing code for free is charity.
I always saw creating open source code akin to being a plumber or carpenter who applied their hard earned knowledge and worked for free in homes they chose.
A plumber who works for free is a rare thing to see, however in software it seems lots of people _expect_ it to be created like that. Not uncommon at all to see comments in HN saying that "oh well if it's not OSS I won't try this software you're showing off". Try saying to a carpenter that if they don't give away their new chairs for free, you wouldn't even start to think of getting one! :)
But then, if you care about the "right to repair" (so to speak) of your software, well at least use a strong copyleft, not a permissive license that basically grant the permission to "steal".