> Plagiarism isn’t a legal concept, it’s an ethical one.
Well if it isn't a legal but an ethical concept, then that's just your opinion, since there isn't some universal body that establishes exactly what is ethical and what isn't. And as I said in my previous comment, "I don't consider".
> You need to either attribute the source, or rewrite it in entirely your own words — just like when writing a paper.
Often times a three liner can not be changed in any way, and is the only solution to a problem. In some cases you may be able to change it only in terms of indentation and variable names (in others you can't even change that).
But assuming you can do that, it makes no sense at all just changing indentation and variable names just for the sake of changing it.
> Confirming to the license is also required; iirc, SO requires attribution under the CC-SA license.
As I said I'm not talking about the legalities.
https://stackoverflow.com/questions/55319570/how-can-i-raise...
Are you going to attribute that every time you use Math.pow?