A recent thread raised an important question: How to license the code posted to this forum and can it be reused? It’s important that we discuss this, agree on some solution, and post it as a guide in the sticky “Welcome / Read this First” post.
If you post your code to the forum, you should have the right to claim copyright on it and license it how you want. However, most people just post code and don’t worry about how it’s used. We should have some common (default) baseline on what happens to the code that’s posted without license or explicit instruction about distribution and attribution.
Let’s discuss it. I propose:
- By default, the code that you post to any thread on the Fortran Discourse is in the public domain and can be reused in any way.
- If you want attribution, or require that the code be used under a specific license, or that the code shouldn’t be reused at all, state so explicitly in the same post. This could be done, for example, by including a Copyright statement in a comment line of the code snippet, including the name and a link to the license, and similar.
- Only post code that you know you are allowed to share.
- If you want to reuse the code, even if by default posted as public domain, kindly ask the author of the post for permission.
- If you do reuse the code, consider giving attribution to the original author, either by name or by including the URL to the original thread where the code was posted.
What do you think? Did I miss anything?