Sorry for the little OT rant, but I'll have to object to that. That's IMO less of a lawyer thing, and more a "asking a field expert a generic question and expecting an immediate, brief answer" kind of thing.
In my experience, if you straight up ask any field expert, be it a lawyer, a doctor, an engineer, etc... a vague, but obviously case specific question, the real experts will rather try to point out that they lack necessary background information and that the underlying subject matter is not that simple ("It depends", "I'd have to look into this", "Well uhmmm, possibly/maybe/yes/kind of, but...", "It's not that simple").
If you're not particularly familiar with some subject matter, it is kind of hard to gauge that the "simple question" might be very vague, maybe confuse some subject matter and might be edging on a very complex topic.
I take it most people here have some sort of programming background? Just try to remember the last family gathering where someone started pestering you about their computer problems, or tried to start small talk about something they picked up in the headlines. Or maybe a meeting with management where you were asked a "but couldn't you just [simply]...." kind of question (or even worse: "exactly how long will this take?") and they tried to press you for a swift, immediate answer.
From my experience so far, I'd even go further and suggest to be skeptical of any "expert" who has a habit of confidently answering briefly and to the point.
The default if code does not have any notice anywhere is that it is copyrighted, and no license is given to anyone to use it, so any use of it is a violation.
At least in the US, all creative works are copyrighted by default (such as this comment, which does not include a notice of such, but is copyrighted).
Because of that, the default assumption of anyone would be that anything is copyrighted and cannot be used for any purpose outside of fair use unless there is a specific license granting additional usage.
If they had put explicit copyright notices in the code snippets, I'd assume otherwise.
In the case of a random blog, the code likely does not have an associated license, meaning it is copyrighted and any derivative use of it (i.e. copying it) is a violation of their copyright.
In the case of stackoverflow, their ToS require people who post code to share it under a Creative Commons license [0]. Unfortunately, if the author of the post didn't realize that, it's possible they did not have the original copyright and couldn't make that assignment, so you still may have to do your own due diligence.
Where things work as intended on stackoverflow, you are required to provide attribution.
Your assumptions are backwards, and it sounds like that results in you violating copyright.
In general I suffer from NIH complex so don’t really copy code from those places ;)
Most(*) small snippets of code (e.g., 1-10 lines) on Stack Overflow are probably not copyrightable, at least not under U.S. law. You don't need a license to copy and use something that's not copyrightable.
(*) But not all. As usual, it depends.
A license notice provides a clear explanation of the rights and responsibilities of the user. This dissuades most any notion of "lack of intent" as the restrictions are put in your face from the start.
I have a bunch of code in a repository or set of repositories. I got confused and thought this file was one we created/had a license to reuse rather than a piece of third-party code, and thus copied it into a different project.
U.S. government works are not eligible for copyright.
Some works do not have sufficient creative element to be covered by copyright, or the other user may be using only the non-covered elements of the work (factual collections, or see recipes).
But probably most important, fair use is a limitation to the exclusive rights of copyright, in spite of copyright holders' frequent assertions that "any other use without written consent is prohibited". A use may be fair even against the express wishes of a valid copyright holder, as fair use is not infringement. Factors to be evaluated in fair use include, but are limited to:
(1)the purpose and character of the use, including whether such use is of a commercial nature or is for nonprofit educational purposes;
(2)the nature of the copyrighted work;
(3)the amount and substantiality of the portion used in relation to the copyrighted work as a whole; and
(4)the effect of the use upon the potential market for or value of the copyrighted work.
https://www.copyright.gov/fair-use/https://www.law.cornell.edu/uscode/text/17/107 see 107-112 for other limitations of copyright.
// Please keep this line & LICENSE: <license> <year> <name> <email>A question of 'law' vs 'facts'
The automatic state for content is "protected by copyright," unless a different arrangement is made.
The automatic state for contract terms is "not agreed to," unless a different arrangement is made.
tl;dr You need proof (written or otherwise) that a contact happened; not so with copyright protection.
Same goes for copyright notices. For example, the notice makes it hard for a violator to use a negligence defense, effectively increasing the penalty for violations.
But proof is not relevant for a copyright. Even without writing, the existence of the copyright is not in doubt.
It's a bit like putting a "stealing this car is illegal"-sticker on your car - sure, you made that clear, but "I didn't know stealing this car was illegal" is not going to fly as a defense either way.
(b)In no case does copyright protection for an original work of authorship extend to any idea, procedure, process, system, method of operation, concept, principle, or discovery, regardless of the form in which it is described, explained, illustrated, or embodied in such work.
Thus, if it is simply the description of the algorithm to accomplish a process, it isn't copyrightable (functional processes are the domain of patent law, not copyright). But creative ways of describing an idea or process could be copyrighted...Further discussion https://www.copyright.gov/circs/circ33.pdf https://www.iusmentis.com/copyright/software/protection/
Yes, if your integrity is worthless.
The GNU foundation, whatever its failings, does not have a policy of claiming copyright on blank lines.