asa powerful gud ani duha when it comes to web development? api or web framework
asa powerful gud ani duha when it comes to web development? api or web framework
The difference between a framework and a API is that you use a API, whereas a framework uses you.
Serious: A quick search will get you to this page.
Asking if who's better is like comparing orange to an apple.
lahi man ang uses anang duha icheck sa ang meaning anang duha then balika basa imo question hehehe
Lahi na sila dong.
You use API to do something, while framework uses your code to do something.
API(Application programming interface) - IMHO, usa ni siya na set of rules, methods or protocol na gigamit para makaconnect(send/update/recieve data) sa usa ka software.
For example:
Twitter API
- Gihmo ni siya na API para makaconnect(send/update/recieve data) ang uban software sa Twitter.
Situation:
Pananglitan, naa kay website, nya naa pud kay twitter.. nya ganahan ka na makita ang imong twitter feeds sa imong website.. thats the time na mugamit ka sa Twitter API para makakuha kag data sa ilaha and madisplay nmo sa imong website.
FRAMEWORK - IMHO, ang framework kay usa ka set of rules, methods and protocol na gibuhat para mas mapadali, mahapsay and mapanindot, masecure ang paghmo nimo sa usa ka software.
Example
Codeigniter Framework. Framework ni siya PHP programming Language.
Sample Situation:
Ganahan ka maghmo ug website using PHP pro ganahan ka na hapsay imong code and mas secure ang imong site. Pwede nimo gamiton ang Codeigniter framework para mas mapadali and mahapsay ang pagbuhat nimo sa usa ka software using PHP programming language,
lahi manang API ug Framework so dili angay i compare ang duha.
it's night and day TS.. hehehe.. bitaw, API is what your app will show to the world or let the world access your app.. the framework is a base building block for your app.. lahi ra jud kaayu.. the framework itself has API which obviously let you use the framework itself..
natubag na nila tanan TS, lahi nlng akong e tubag...spelling
Not everything has something like API honestly and you do not have any code to get it done better wisely and totally and completely. I am totally out why people constantly do not see any difference between API and something like framework.
Similar Threads |
|