Software Design
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreSoftware Design

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 28th, 2007, 06:12 AM
Datamike's Avatar
Datamike Datamike is offline
Web Developer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2001
Location: Finland
Posts: 719 Datamike User rank is Corporal (100 - 500 Reputation Level)Datamike User rank is Corporal (100 - 500 Reputation Level)Datamike User rank is Corporal (100 - 500 Reputation Level)Datamike User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 11 h 27 m 33 sec
Reputation Power: 9
Framework vs API

This is an interesting question I've been trying to answer; what makes a framework and what makes an API, and what are the differences? I've used both, in several languages, but it never really got clear to me what separates the two.

Most of the time it doesn't stop you from writing code like you always do. I'd just like to know.
__________________
-- Tomi Kaistila
-- Developer's Journal

The more you learn, the more you know.
The more you know, the more you forget.
The more you forget, the less you know.

Reply With Quote
  #2  
Old June 28th, 2007, 01:24 PM
NovaX NovaX is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Bay Area, California
Posts: 421 NovaX User rank is First Lieutenant (10000 - 20000 Reputation Level)NovaX User rank is First Lieutenant (10000 - 20000 Reputation Level)NovaX User rank is First Lieutenant (10000 - 20000 Reputation Level)NovaX User rank is First Lieutenant (10000 - 20000 Reputation Level)NovaX User rank is First Lieutenant (10000 - 20000 Reputation Level)NovaX User rank is First Lieutenant (10000 - 20000 Reputation Level)NovaX User rank is First Lieutenant (10000 - 20000 Reputation Level)NovaX User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 4 h 26 m 55 sec
Reputation Power: 162
Send a message via ICQ to NovaX
You live in a house (framework); you use a tv (api).

Reply With Quote
  #3  
Old August 3rd, 2007, 01:03 PM
calpol2004's Avatar
calpol2004 calpol2004 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 251 calpol2004 User rank is Sergeant Major (2000 - 5000 Reputation Level)calpol2004 User rank is Sergeant Major (2000 - 5000 Reputation Level)calpol2004 User rank is Sergeant Major (2000 - 5000 Reputation Level)calpol2004 User rank is Sergeant Major (2000 - 5000 Reputation Level)calpol2004 User rank is Sergeant Major (2000 - 5000 Reputation Level)calpol2004 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 11 h 8 m 41 sec
Reputation Power: 49
Send a message via MSN to calpol2004
Well it isn't very clearcut and they're practically the same thing.

Here are my defintions:

API: provides a way to interface with something by giving you a set of functions, like the windows api is used to tell windows what to do.

framework: is more of an abstraction layer, it's there to make things simpler. for example the .NET framework provides lots of libraries to do things which would usually take lots a lots of api calls.

Last edited by calpol2004 : August 3rd, 2007 at 01:09 PM.

Reply With Quote
  #4  
Old February 28th, 2008, 03:32 AM
ankit113 ankit113 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 1 ankit113 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 54 sec
Reputation Power: 0
Check this now....

framework vs api

framework - A Framework may contain one or more APIs. Framework is a broad term. A framework specifies the implementation of behaviour.

API - The concept is any well defined interface between two separate programs. API doesn't specify the implementation of behaviour.

Use your head now!!!!


Reply With Quote
  #5  
Old March 21st, 2008, 04:50 PM
tinyabs tinyabs is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 93 tinyabs User rank is Private First Class (20 - 50 Reputation Level)tinyabs User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 13 h 24 m 34 sec
Reputation Power: 4
frame-work, 2 word.

u frame up the problems first so that u can do the work.

api - simply interfaces that programs applications

that's what i think.

Quote:
Originally Posted by ankit113
Check this now....

framework vs api

framework - A Framework may contain one or more APIs. Framework is a broad term. A framework specifies the implementation of behaviour.

API - The concept is any well defined interface between two separate programs. API doesn't specify the implementation of behaviour.

Use your head now!!!!


Reply With Quote
  #6  
Old March 21st, 2008, 06:52 PM
ejac ejac is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Location: Belgium
Posts: 109 ejac User rank is Sergeant (500 - 2000 Reputation Level)ejac User rank is Sergeant (500 - 2000 Reputation Level)ejac User rank is Sergeant (500 - 2000 Reputation Level)ejac User rank is Sergeant (500 - 2000 Reputation Level)ejac User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 7 h 7 m 21 sec
Reputation Power: 9
The definitions of wikipedia, which seem to correspond and extend what has already been said:

http://en.wikipedia.org/wiki/Software_framework

http://en.wikipedia.org/wiki/Applic...mming_interface

Reply With Quote
  #7  
Old May 5th, 2008, 05:44 AM
Peter_APIIT Peter_APIIT is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 22 Peter_APIIT Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 40 m 10 sec
Reputation Power: 0
Nice topic.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreSoftware Design > Framework vs API


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT