|
Until you sign up you can't do much. Yes, it's free.
|
|
|
|
|
|
|
 | / / / Viewing Topic
|  |
|
|
|
|
 LiveWire Humor
|
|
|
|
( Elvish15601 )
Dairy Product Addict
Patron
|
Application Programming Interface
------- Quoter for Life, if you are put this in your sig too. Join me in my fantasy world
|
|
|
vitamin
Guru
Patron
|
woudldnt know m88ty dont do programming!
------- Missing you Clairey xxx
|
7:24 pm on April 17, 2004 | Joined: Sep. 2002 | Days Active: 1,036 Join to learn more about vitamin England, United Kingdom | Straight Male | Posts: 13,282 | Points: 24,323
|
|
| |
|
|
sakurag
Soothsayer
Patron
|
I know that Win32 is an API. There is a DOS API, and I believe that Swing and AWT are Java API's. In fact, most anything can be an API. But those are probably the most widely used. Here's an instance of your own API. Say you have a GUI built on Win32 or Windows Forms(C#/VB), and then you had a SQL server in the background to throw out some infor when you needed it. Well, let's say you were a smart programmer, who didn't write stored procedures on the SQL server, and didn't embed SQL calls inside your GUI. :p But instead you decided to create an interface between the two distinctly different realms. GUI <---> ? <---> SQL DB What goes in that '?' Well, that's where your own API comes in. You write an interface class(object) to sit between them. For instance, if it dealt with customers, your GUI would call.. maybe Query.GetCustomer( ). This Query class would abstract EVERYTHING DB related away from the GUI. The GUI would have no clue that it's talking to a Database. Which is nice.. because what if it's not.. Let's think about that. So now we have to think.. Is Query itself an true concrete class? No, why should it be. It should be an Interface, or Abstract class. Now we can build a whole bunch of classes that can extend Query. DBQuery, SQLDBQuery, FlatFileQuery, ODBQuery, etc. They would all inherit from Query, so your GUI wouldn't know the difference. Now let me redraw the picture.. GUI <---> Query <---> ? Now the ? is in a great place. That means the GUI has no clue whats in the ?. You can put ANYTHING there. As long as you write an appropriate Query class for it. So now I've built a Query API for my application. It's just an interface, so you MUST implement the methods in each inherited class. But this is very very powerful. I talk to much.
------- I've got spurs that jingle jangle jingle. As I go riding merrily along. And they sing, "Oh, ain't you glad you're single?" And that song ain't so very far from wrong.
|
2:24 pm on April 18, 2004 | Joined: Oct. 2002 | Days Active: 853 Join to learn more about sakurag Washington, United States | Straight Male | Posts: 2,745 | Points: 12,112
|
|
| |
|
|
squirellplayingtag
Dairy Product Addict
Patron
|
I surprisingly understand that. I want to know how! Hehe. All in good time Dave, all in good time.
------- "The most abundant element in the universe is hydrogen, then second is stupidity."-Harlan Ellison "What good fortune for our governments that the people do not think."-Hitler
|
|
|
sakurag
Soothsayer
Patron
|
Go for it. 3 weeks ago I didn't know a bit of C# or how to do ANYTHING with it. Now I'm developing too applications in it. One is a Ski Rental application and the other is an image processing application. Two totally different things, and I'm doing it from scratch. It's great fun, and if I can learn it, you can too. I'm not the smartest cookie out there ;}
------- I've got spurs that jingle jangle jingle. As I go riding merrily along. And they sing, "Oh, ain't you glad you're single?" And that song ain't so very far from wrong.
|
6:02 pm on April 18, 2004 | Joined: Oct. 2002 | Days Active: 853 Join to learn more about sakurag Washington, United States | Straight Male | Posts: 2,745 | Points: 12,112
|
|
| |
|
|
( Elvish15601 )
Dairy Product Addict
Patron
|
Quote: from sakurag at 5:24 pm on April 18, 2004
I know that Win32 is an API. There is a DOS API, and I believe that Swing and AWT are Java API's. In fact, most anything can be an API. But those are probably the most widely used. Here's an instance of your own API. Say you have a GUI built on Win32 or Windows Forms(C#/VB), and then you had a SQL server in the background to throw out some infor when you needed it. Well, let's say you were a smart programmer, who didn't write stored procedures on the SQL server, and didn't embed SQL calls inside your GUI. :p But instead you decided to create an interface between the two distinctly different realms. GUI <---> ? <---> SQL DB What goes in that '?' Well, that's where your own API comes in. You write an interface class(object) to sit between them. For instance, if it dealt with customers, your GUI would call.. maybe Query.GetCustomer( ). This Query class would abstract EVERYTHING DB related away from the GUI. The GUI would have no clue that it's talking to a Database. Which is nice.. because what if it's not.. Let's think about that. So now we have to think.. Is Query itself an true concrete class? No, why should it be. It should be an Interface, or Abstract class. Now we can build a whole bunch of classes that can extend Query. DBQuery, SQLDBQuery, FlatFileQuery, ODBQuery, etc. They would all inherit from Query, so your GUI wouldn't know the difference. Now let me redraw the picture.. GUI <---> Query <---> ? Now the ? is in a great place. That means the GUI has no clue whats in the ?. You can put ANYTHING there. As long as you write an appropriate Query class for it. So now I've built a Query API for my application. It's just an interface, so you MUST implement the methods in each inherited class. But this is very very powerful. I talk to much. 
Wow that was concise and it makes me want to get a book even more but im still poor lol. Thanks for the info
------- Quoter for Life, if you are put this in your sig too. Join me in my fantasy world
|
|
|
J4m1e
Dairy Product Addict
|
Almost everything uses an API, you can't list them all, it would take forever, you can use API's to control your mouse without touching it, eg, to click on something when you're not there. Almost every application has its own API.
|
10:07 am on April 21, 2004 | Joined: Feb. 2004 | Days Active: 161 Join to learn more about J4m1e Scotland, United Kingdom | Straight Male | Posts: 459 | Points: 2,105
|
|
| |
|
|
|
|
sakurag
Soothsayer
Patron
|
I'm not a big graphics person. Though, I can't really say that, given I have done some semi-intensive graphics work. Not with any real api, unless you consider GDI+ using only the Image and Bitmap objects taking advantage of a graphics API. We are required to do pixel level manipulation for contrasts, affine transformations, etc. Right now I'm struggling with simple fixed axis rotation :{ Something is wrong with my matricies. :{ Tomorrow I"ll have to fix that, then I have to impliment linear and bilinear interpolation into the mix.. sigh.
------- I've got spurs that jingle jangle jingle. As I go riding merrily along. And they sing, "Oh, ain't you glad you're single?" And that song ain't so very far from wrong.
|
1:10 am on April 22, 2004 | Joined: Oct. 2002 | Days Active: 853 Join to learn more about sakurag Washington, United States | Straight Male | Posts: 2,745 | Points: 12,112
|
|
| |
|
|
|
|
|
| Looking for something else?
|
|
|
|
|
|
 | / / / Viewing Topic |  |
|