There is substantial technical debt introduced by copy and pasting code. I've made a rule for myself: Never paste more than three lines of code at once. It forces me to understand the code I'm copying, and it keeps my work tidy.
Why copy-paste when you can autocomplete? <a href="https://emilschutte.com/stackoverflow-autocomplete/" rel="nofollow">https://emilschutte.com/stackoverflow-autocomplete/</a><p>Does anybody know how to make a Sublime Text plugin? Oh wait, I know where to look that up.
I feel like this is a smug joke about a problem which doesn't actually exist. Effective engineers know how to look things up. Stack Overflow is one very effective way to look things up or at least provide pointers to authoritative sources of information which might otherwise be difficult to uncover or not obvious from the original source.
"Using code from Code Review and Code Golf may also be rather unethical, since you are just taking advantage of the fact that everything is automatically licensed on Stack Exchange under CC-BY-SA 3.0 with no exception."<p>I disagree. If you knowingly publish your code on such sites, then you know ahead of time that the license is CC. Others are abiding well within their rights as licensees if they use your published code as such.<p>It's only unethical if CodeReview did not clearly and plainly disclose their licensing agreement a priori, or if, as a licensee, you violated the terms of that license.