3 ms·
"Ctrl-C, Ctrl-V"? This is so wrong...
by alexcasalboni 11y ago
"Ctrl-C, Ctrl-V"? This is so wrong...
- simoncion 11y agoYeah. If you're concerned about limiting the amount of additional code one needs to understand in order to use part of a library of code, then the fix is relatively simple: make each function in your library depend on as little of the rest of the library as is possible. If the author is legitimately concerned about code bloat from the unused parts of a library, Go's linker needs to get a lot smarter.
- pbreit 11y agoWrong as in unethical or prohibited by common licensing? Or just your opinion of the tactic?
- alexcasalboni 11y agoIt's just against every software engineering best practices. You find a library which implements what you want/need? You don't copy&paste 10% of it into your repository just to make sure it won't ever brake. What if it's broken already? They will fix it and your version won't be updated. This logic is not even ok with your own code, why should it be promoted with somebody else's code?
- EliRivers 11y agoExactly. Should be "Meta-W, Ctrl-Y" :)