I understand it's best to implement other libraries where possible (rather than copying code), but in some cases, it's more convenient to copy code.
What is the correct etiquette for copying code? Credit at the top of your file, near the code used? What if the code is re-factored beyond recognition?
@eMAD parts of it can, yes. For example if it has GPLed JavaScript, then the source code for that must be available.
The GNU General Public License, often shortened to GNU GPL (or simply GPL), lists terms and conditions for the copying, modification and redistribution of open source software. The GPL was created by Richard Stallman in order to protect GNU software from being made proprietary.
GPL requires you to release the modified source code only if you release the modified program. If you've modified a program's source code for personal use, there's no need to release its source code. However, if you make the modified program available to the public, you will have to make the code public too.
GPL License is a free software license that allows software to be modified or redistributed without any restrictions or compulsory payments for the licensed code. the GPL license is used by Developers to ensure that their code does not become proprietary when modified.
The GNU GPL is very specific about how you may use the code you obtained through that license. (Be careful: If your license to the code in question is not GPL, but for example LGPL, different rules apply.) Basically GPL boils down to this:
Even if the code is re-factored beyond recognition: If you want to distribute it, you have to follow these terms and make it understandable to the other party which parts you changed (beyond recognition ;-)). Be sure to not forget: This is not etiquette, this is copyright law!
Other licenses, such as the BSD licenses, have different terms. For example, if you use code under the BSD license, you only have to keep the copyright statement, but may happily redistribute the code under any license you like to choose, with source code or not.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With