4 ms·
Adding to this, copy/pasting things works especially well if the code is contained within another abstraction that is much more unlikely to change. For example,
by wh33zle 6y ago
Adding to this, copy/pasting things works especially well if the code is contained within another abstraction that is much more unlikely to change. For example, say your service has a REST API. It doesn't matter much, how the functionality is implemented as long as you are fulfilling the API contract.
It is so much easier to just get the functionality down first, properly test it and once it is all there, good abstractions within the implementation might just surface from looking at the (duplicated) code.