![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4
![]() |
what is the difference between an API and a library?
hi. i didn't know what API stands for so i looked it up. to me a library and an API sound similar to a library but im sure there are some differences that i don't know about. It soundslike a library could be part of an API but i dunno. Is a library moreso to make new programs and an API is to help developers develop an existing program? thanks for any replies in advance
|
|
|
|
|
|
#2 | |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 3
![]() |
just google for 'define:api'. You will find loads of definitions.
One description: Quote:
|
|
|
|
|
|
|
#3 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,198
Rep Power: 5
![]() |
A library is not part of an API; the reverse is closer to being true. The API (Application Programmers Interface) is the specification of how applications can use the library.
|
|
|
|
|
|
#4 | |
|
Hobbyist Programmer
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4
![]() |
Quote:
|
|
|
|
|
|
|
#5 | |
|
Hobbyist Programmer
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4
![]() |
Quote:
|
|
|
|
|
|
|
#6 | |
|
Professional Programmer
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4
![]() |
Quote:
__________________
-Steven "Is this a piece of your brain?" - Basil Fawlty |
|
|
|
|
|
|
#7 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
You don't want to write the all code to operate your system. You don't even want to learn all the code that already exists to operate your system. All you want to do is learn to invoke the code that operates your system. If the invocations are standardized, remain unchanged, and always result in the promised operation, you are in Fat City. If the operations are improved internally without deep-sixing your efforts, no sweat. This little piece of lagniappe given you by the people that actually wrote all that code, is the API. In my opinion, it includes the small layer of software necessary to standardize the invocations, as well as the detailed instructions for using it.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|