News for hackers. Stuff that matters.
Re:Is GitHub Copilot a blessing, or a curse? by arvindamirtaa on Tuesday July 20, 2021 @05:29AM (#27891614)
I'm open to new perspectives. But here's where I stand so far.

If I learn programming from a book that is copyrighted and use a small snippet (for example, how to do a particular kind of sort) from it in my own program, am I violating a copyright?

Re:Is GitHub Copilot a blessing, or a curse? by drran on Tuesday July 20, 2021 @07:57AM (#27892660)
Read the book copyright statement and license. Some books have separate license for examples.

However, if you copy an example from a book into a code, then very often it's fair use, but if you copy the same example from a book into your own book, then very often it's a copyright infringement, unless explicitly allowed by the book license.

Re:Is GitHub Copilot a blessing, or a curse? by ekster on Tuesday July 20, 2021 @05:32AM (#27891629)
Does the license of the book say that if you copy that snippet you can, but should provide attribution, and you don’t?