NaijaGrows Forum

Welcome, Guest: Join NaijaGrows / Login / Trending / Recent / New
Stats: 33 members, 535 topics. Date: Tuesday 17th October 2017 at 03:55 pm

What Is Difference Between Api, Framework And Plugin. - Programming - NaijaGrows

NaijaGrows Forum / Technology / Programming / What Is Difference Between Api, Framework And Plugin. (275 Views)

What Is Difference Between Api, Framework And Plugin. / Difference Between Politicians And Diapers / Never Underestimate The Difference You Can Make In The Lives Of Others (2)

(Reply) (Down)

What Is Difference Between Api, Framework And Plugin. by sherifastro(m): on Tue 05 at 05:10 pm
An API is really no more than a set of method signatures and other information necessary to use a class or set of classes.

The API is totally distinct from the implementation. For example, a number of vendors have implemented the servlet API, each in a different way.

The API by itself has no implementation.

A class library would have an API, as would a framework..

A framework is a set of classes which handles the flow necessary to perform a complex task, but which requires plug-in classes specific to your application (database, app server), and which allows for additional plug-in classes to extend the functionality.

For example, you could have a framework which handles the general flow of an online store.

This framework would handle tasks such as `put item in shopping cart`, `generate order on checkout`, etc.

On the other hand, you would need to provide the classes which enable the framework to persist the shopping cart to the database of your choice, to connect to a credit-card processor, to send orders to a warehouse, among other things.

Further, if you wanted to decided that you wanted to offer monogramming, you would need to provide classes to do so, and the framework should make it easy to plug these in.

A plugin is a Python script that gets loaded by Sublime Text when it's inside a package at its top level and interface with the Sublime Text API. Essentially, plugins can be part of packages, but packages can consist of many more different types of resources.</t>

(Reply)

Viewing this topic: 0 users and 1 guest(s)

(Go Up)


Links: (0)
NaijaGrows - Copyright © 2016 - Sheriff Adeleke. All rights reserved.® See Privacy Policy , Terms & Conditions
Mail: support@naijagrows.com