Programs do not exist in a vacuum. Almost everything they do requires other programs to function. Even the simple "Hello World" program, a staple in programming language tutorials, requires some way to print the text to a console. This is where libraries come in. Libraries are reusable pieces of code that can be called from an application and used many times. The libraries that programmers generally know are the standard libraries for a programming language and operating system libraries.
Standard libraries are those defined by the programming language specification. For example , when doing a hello world
Some languages have larger standard libraries than others. Generally, higher-level languages have more extensive libraries.
The second class of libraries often used by programmers is operating system libraries. As the name implies, they are built into the operating system, and generally provide access to OS tools, such as current information about the computer and the user.
The final set of libraries is third-party ones. These are often ignored by programmers, but they can be extremely powerful. For
An important thing to remember with libraries is copyright issues. LibAV is distributed under the GNU GPL or GNU LGPL depending on the version. These licenses have different requirements. The GPL, for
A final fact to remember about libraries is that they have often been in development for a long time. If you decide to write a piece of code, it might have bugs, but this is less likely in libraries, as previous users of the library have already tested it and caught many bugs.
Using libraries can make writing code a lot easier. Instead of having to write everything yourself, you can reuse what people have already written, making for more efficient coding.
Source by Bill Hollins
Post a Comment