java - Advantages of library -
i have 1 java file numbers of functions around 30-40 use commonly, thinking make external library of it.
but want know what advantages of making library except not need import java file, there performance advantage of making library?
libraries , frameworks have these advantages:
- reduce size of class files (code can extracted , moved elsewhere don't disturb anyone).
- cleaner api since can't leak internal fields
- you can test library independent of application. if library good, bug must in app. reduces test , debug time.
- you can reuse library in several projects.
Comments
Post a Comment