|
|
|
|
|
by loup-vaillant
4245 days ago
|
|
The trade off is rarely "copy&paste vs coupling components". Typically, you would factor out a third component that the original 2 would use. Two components are hardly coupled just because they happen to use the same library. |
|
Copy & paste sounds bad but what it really says is: let's make that piece an invariant and don't import the library if you only need one short function.
So I would say the trade off boils down to "simplicity vs flexibility"