|
|
|
|
|
by 82716f12
314 days ago
|
|
That sounds good in theory, but I haven’t come across a codebase that’s really optimized and free of unnecessary imports, especially in large companies. And when you have to depend on external libraries beyond your control, how do you typically handle those situations? |
|
As for external libraries, you import them in places where you need to use them only to avoid the same pitfalls. Its also pretty easy to analyze the import process within those libraries, and then again import specific submodules only that limit what actually gets loaded.