2 ms·
Some advantages of libraries: - they stimulate more clearly defined APIs - allow each component to be easily replaced by another component Some disadvantages
by amelius 12y ago
Some advantages of libraries:
- they stimulate more clearly defined APIs
- allow each component to be easily replaced by another component
Some disadvantages of libraries:
- every library typically needs some "glue logic" to fit in the total program, causing performance overhead and/or code ugliness
- every library maintains state in a different way, making it difficult to atomically control or save the state of the complete application (a similar problem exists with microservices)
- (related) also garbage collection over objects in different libraries may become a nightmare if every library implements its own garbage collector (try mixing V8 and a Java VM, for example)