Solved

High-level explanation of API ?

Posted on 2013-07-31
5
342 Views
Last Modified: 2013-08-01
Could someone provide a high to mid-level explanation on what APIs are and how they are used?  I think I grasp the concept, but I'm hoping to get some confirmation.

Thanks
0
Comment
Question by:blinkme323
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 14

Assisted Solution

by:mds-cos
mds-cos earned 167 total points
ID: 39371152
API's define how applications should interact with each other.  Basically a standardized way of integrating with various systems.

Take Microsoft as an example.  There are published API's that can be used to hook into the Microsoft applications to perform various functions like retrieving data from Active Directory.

Take a look at Wikapedia (http://en.wikipedia.org/wiki/Application_programming_interface) -- they have a good working explanation.
0
 
LVL 24

Expert Comment

by:aadih
ID: 39371153
0
 
LVL 7

Accepted Solution

by:
gudii9 earned 167 total points
ID: 39371224
Here is good link and explanation
What does the acronym API stand for? API means Application Programming Interface and they say that APIs are the underlying aspect of Web 2.0.  But what does it really mean – what is an api? Let’s try to demystify the term a little.

The word to really pay attention to is “Interface”. If you have any experience at all with programming, all kinds of abstractions and contracts must be coming to your mind when you hear the word “interface” but we are more interested in the classical meaning of the term.

An interface is a common boundary between two separate systems. It is the means or the medium via which these two systems communicate.

Definition

An API is the interface implemented by an application which allows other applications to communicate with it.
Why Is It Needed?

In one word – communication. You might ask why communication is so important. Just imagine Notepad couldn’t copy-paste to and from Microsoft Word or Google Chrome. Imagine having to type each and every time although the text is already there in some other application. This is only one of the examples of communication between applications and all this communication is made possible via APIs.
What Is It Really?

You cannot run an API like you would run say a Notepad application. This is because APIs are generally invisible to the end users like you and me. APIs are carefully thought out pieces of code created by programmers for their applications that allow other applications to interact with their application.


http://www.makeuseof.com/tag/api-good-technology-explained/
0
 
LVL 21

Assisted Solution

by:CompProbSolv
CompProbSolv earned 166 total points
ID: 39371306
The previous responses are excellent, but I'll add another sort of example.

In the DOS days, there were multiple ways for a programmer to communicate with the system.  Let's look at a very simple example of writing a character to the screen.  One method was to put the appropriate information in different registers (storage locations) and then send a request to the BIOS to handle the rest of it.  A similar approach used DOS, which would then call the BIOS.

These two methods are examples of using the API.  The big advantage was that the programmer needed to know very little about the hardware; that was the API's job.  If a new video card came along that was designed differently from the older cards, it would still work because it would replace the BIOS code that actually communicated with the card with new code that could properly access the new card.

The main disadvantage with those approaches was that they were too slow.  Instead, programmers would write the characters directly to the video card and skip the APIs altogether.  This put a much bigger burden on the programmer who had to know which video card was installed, was it in text or graphics mode, which screen was active, etc.  It wasn't too bad in the days of single-tasking, but it was still more work and some programmers didn't quite get it right.

If a new video card came along whose architecture was different from the cards that the programmer knew about, code written to bypass the API probably wouldn't work.  Code written to use the BIOS or DOS APIs should work properly without any changes.
0
 

Author Closing Comment

by:blinkme323
ID: 39375030
Thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question