12 points · by hbien · 19y ago · 21 comments
I'm thinking about making an app to sell cheap, $30, but should the source code be included with it? The application is meant for anyone with a shared hosting account or VPS, so the source code might be useful for hackers who want to change things for their own needs.
But at the same time, giving away the source code feels like you're giving away your hard work.
What do you guys think?
That said, I suspect you won't gain much by distributing source in a wholly proprietary product. Customers might occasionally find a bug or two, and might have some interest in modifications...but you can solve the former by fixing problems quickly, and the latter by providing an API. So, while your particular fears are unfounded. Why would someone steal your code, when there is probably better-documented Open Source software to do roughly the same things from a developer perspective? Where proprietary software can win is on usability, UI, support, and sometimes more rapid innovation if the field doesn't have thousands of developers.
As slashcom mentioned, you need to be very clear about the terms of use of your software if you include source, and if you mention inclusion of source code on the website as a feature. Like izak30, your customers may wrongly assume you're talking about Open Source software. We still get occasional users who find ways to misunderstand our license terms because we offer an Open Source version of our product.
Good luck, whatever you decide.
A related issue is license enforcement. Lots of shrinkwrap (meaning, not hosted by the copyright holder) software incorporates licensing code to discourage installing the software on multiple servers without paying for it. Again, this decision must be made with sensitivity to your specific market. If your competitors don't protect their code, you shouldn't either.
Obviously, all licensing code relies on security through obscurity. If you offer customers the source, and choose to enforce licensing, you have an interesting technical challenge on your hands.
The only positive I can see to source-availability is a hedge against your company going out of business. A technically proficient customer such as an ISP can then continue to maintain their instance.
A big negative, both for you and for corporate customers, is that customer employees may modify the code, leaving it in support limbo.
I recommend laser-like focus on the market you plan to serve. Incidentally, such a focus may cause you to reconsider your $30 price point.
My guess is that few would ask, but those who would are the ones that could help you improve the program. People trying to take your market won't beat you just by tweaking your source and selling it.
I've been thinking about a related idea: opening the security code, at the very least.
How do you make the security of a web app public so that smart people know about it, but control it so that if not enough people are looking, exploiters see the holes first?
I think it's the kind of thing you wait to do when you're bigger, but we don't see much openness on web security like we do for most FOSS.
FWIW, I'd never allow installation of a non-"open source" app on our servers. I put "open source" in quotes since our definitions might differ. You can release a commercial product with source available for your customers to see but the product can be under a non-open source labs certified license. Providing the source, in your case, doesn't mean your customers can give the thing away or show the source to someone else. Just specify it in contract.
If there was absolutely no way that we can have the source and the app does something absolutely amazing so we must have it, then we'd install it on a separate slice away from all other apps. I'm not saying that open source apps are somehow safer but at least with open source apps I can go in and try to see what it's doing and what the quality of the code is.
But seriosuly, why worry about source? Rely on social contract, copyright and legal contracts to enforce your ownership. If someone wants to copy your app, they'll find a way no matter what. When people deploy their web apps, they allow anyone to see their source (JS, CSS, HTML) anyway.
Another option is to obfuscate but that doesn't solve much.
Probably should consult a copyright lawyer.
But: being into software development for more than 25 years now, I can honestly say: if a piece of code is longer than 300 lines, it is easier and faster to rewrite it yourself instead of trying to understand and modify someone elses code.
That said: generally I would not say its bad to open source your code. On the other hand, if you really have something in it that nobody else has and that makes your app better than others, keep THAT part for yourself, at least for a while.
See Apple. Aqua is closed, darwin is open. Good example, IMHO.
You may just want to build a good API to make it easy for hackers to customize and extend if you decide not to release the source.
Good will and Trust?
Perception of "more for the buck"?
But if it's an advantage to release the source code, that shouldn't matter. If it's a mistake to release the source code, I would probably use PHP (I'm still comfortable programming with PHP from my day job, but I'd be happier with Python).
What do you folks think? or am I thinking about it the wrong way?
probably if you distribute it with scary language about "intellectual property" and derivative works anyone with half a brain would avoid even looking at the code much less reusing it in a new product in order to avoid the possibility of a lawsuit.
(IANAL.)