Code published in the Answers forum is covered by the "Creative Commons Attribution Share Alike 3.0 license", also called "CC BY-SA 3.0":
The code published in the FileExchange uses the "BSD-3-clause license":
Is it a conflict, if code from the Answers forum is used to improve a FileExchange submission, because the license changes? Must the code be accompanied by both licenses?
Can the license be omitted, when the code is trivial enough? If I suggest in the forum to swap the order of loops, it is not worth to cover this by any license conditions. But if I post a smart piece of code and just want to help the readers and do not want to be mentioned as author, what do I have to do? Can I insert such a line as comment:
Or would this be a conflict with the CC BY-SA 3.0 license, which applies to all contributions in the Answers forum?
The license stuff is important, but a strict application is obscure to me. I get some requests per year, if I allow to use my FileExchange code in a thesis or commercial product (of course I do).
If I post code in the forum, I want the readers to save time, and not to waste time with license considerations.