Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: Code snippets license #23

Open
hroncok opened this issue Oct 28, 2017 · 4 comments
Open

Documentation: Code snippets license #23

hroncok opened this issue Oct 28, 2017 · 4 comments

Comments

@hroncok
Copy link

hroncok commented Oct 28, 2017

Flexmock is licensed with BSD 2-clause "Simplified" License. The license is perfect and thanks for that.

However, I find it problematic to share all the code examples in the documentation under the same license.

Every time somebody starts using Flexmock and reads the docs, copy pasting the examples and adapting them, they are effectively redistributing parts of Flexmock and thus, they need to add a copyright notice, list of conditions and a disclaimer (basically the whole LICENSE content). This is especially problematic if someone is copy pasting the examples to learning materials, such as presentations etc. For somebody who deals with licenses a lot, this is not a problem. But for a beginner, this might be rocket science.

A also dare to guess nobody is doing it anyway.

I belive the solution to this problem is to explicitly relicense the code examples/snippets to another license that does not have such problems. I recommend (and vote for) CC0. I believe that Public Domain is the only kind of licensing that makes sense on code examples in documentation and learning materials.

The copyright footer in the docs could read (something like):

© Copyright 2015, Slavek Kabrda, Herman Sheremetyev. Licensed under BSD 2-clause "Simplified" License. Code examples in this documentation are licensed under CC0 1.0 Universal Public Domain Dedication, you can copy-paste them and adapt them in your projects without any obligations.

I realize relicensing stuff is not easy. You would need to ask permission from everybody who ever contributed to the examples. I'm willing to help.

What are you opinions on this matter?

@bkabrda
Copy link
Collaborator

bkabrda commented Nov 7, 2017

Hi, thanks for opening this issue. I have no problem whatsoever with doing this and I agree with the choice of CC0. I've been very short on time lately, so unfortunately I won't be able to do much. If you're willing to do the legwork and send a PR that adds the copyright footer, I'll review and merge.

@hroncok
Copy link
Author

hroncok commented Nov 16, 2017

Form the git log, it seems you moved the docs from somewhere. Was it https://github.com/has207/flexmock/wiki?

@hroncok
Copy link
Author

hroncok commented Nov 16, 2017

@bkabrda
Copy link
Collaborator

bkabrda commented Nov 20, 2017

I have to say I don't remember exactly, but I think the original maintainer first had the docs in the repo, then moved them to wiki, then to GH pages and then I moved those back to the repo. The history in [1] seems to support this, but I really can't tell.

[1] https://github.com/bkabrda/flexmock/commits/master/docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants