Api

00george

  • Posts: 161


00george

  • Posts: 161
Im only 13 and don't really understand what it says on wiki I was hoping someone could put it into simplar terms. I have used a api before though.

Alexin

  • *
  • Posts: 3127
Think of an API as a contract between you and the provider. Use it to communicate with its components.

For example, Mochi provides an API for Mochi Ads. The API tells you what you can do.
"Find the fun"
alexin@stencyl.com

00george

  • Posts: 161
Ok thanks. I always used to think of an api as a short way of writing a long bit of code lets say there was a api method called walk to house and I used that. I thought that would just save me ages coding walk to house by hand.

00george

  • Posts: 161
Um im really sorry but whats a framework?

captaincomic

  • *
  • Posts: 6108
There are libraries and frameworks. Both contain methods or classes (a class is basically just a collection of methods (operating on common data)).

A library does some specific task for you, so that you don't have to code it yourself.
E.g. a image manipulation library will have some methods to scale an image or modify the colors.

A framework does even more for you, it is like the frame of your application, and only leaves some methods for you to implement.
E.g. a GUI framework: you just have to write the layout and write what happens when you click the buttons, everything else is done by the framework.


00george

  • Posts: 161
Thank you very It was nice and easy to understand :)