Suppose you wanted to do what some code does, then you see this LGPL code. What can you do? Adjust variable names and play with line spacing and comments until it feels different?
https://en.wikipedia.org/wiki/Abstraction-Filtration-Compari...
Suppose you want to express what some other writing does, and then you see that writing? What can you do?
(You write your ideas in your own words, and quote and cite your sources)
If I want to describe life with a nature metaphor, and then see you do it with a waterfall, I can probably get away with using a waterfall to the same metaphorical effect in my story.
Can I do that in code?
https://en.wikipedia.org/wiki/Structure,_sequence_and_organi...