|
|
|
|
|
by GuB-42
665 days ago
|
|
If these libraries are so small, self-contained and "completed", why not just copy-paste these functions? Submodules can work too, but do you really need these extra lines in your build scripts, extra files and directories, and the import lines just for a five line function? Copy-pasting is much simpler, with maybe a comment referring to the original source. Note: there may be some legal reasons for keeping "micro-libraries" separate, or for not using them at all though but IANAL as they say. |
|
If you want the same functionality, build it according to the conventions in the codebase and strip out everything else that isn't required for the exact use case (since it's not a library anymore)