DEV Community

[Comment from a deleted post]
Collapse
 
vilfredsikker profile image
Vilfred Sikker Dreijer • Edited

Can you provide an example of a code snippet you would like to use, but can't due to copyright?

I'm not exactly sure about what snippets you are looking for, but not everything is protected, just because it's in a repository with a certain license.

This is a very vague example, but you can't copyright how to center a div with text using Flex, but you can copyright a certain algorithm, e.g.
BinarySearch by princeton. But you are allowed to use it, if you quote the source in comments. (algs4.cs.princeton.edu/code/edu/pr... )

Collapse
 
ariajanke profile image
Aria Janke

I'm afraid I've lost the example in question, and been looking for a different approach altogether (though not much progress has been made).

To touch upon the binary search algorithm. How are any other implementations legal? For instance the Free Software Foundation's binary_search in their C++ STL? Especially glaring considering there is no mention anywhere of Princeton's original implementation.

Finding the line between "recipe/formula" and "creative work" isn't clear to me.

Here's an idea, what about the example of Bobby Prince's work on the original DooM soundtrack? Though I suppose he can be his own literal and matter of fact lawyer on the topic. Perhaps that's a rabithole for a different post, though growing my understanding can help put my mind at ease (maybe).

Thanks for the comment. It certainly got me thinking. n.n;;