Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the difference between plugin and library?

Tags:

i wonder what the difference between a library and a plugin is?

if a component creates a database (maybe comes with a .sql file or creates through a method) could it still be a library or is it called a plugin or module?

cause i am creating a address book component and it provides methods to insert and read records in database. i don't know if i should put it in library folder or plugin folder.

please shed a light on this.

thanks

like image 213
never_had_a_name Avatar asked May 07 '10 23:05

never_had_a_name


People also ask

What is the difference between module and plugin?

A: A plugin is a piece of functionality that can be installed, and once installed dynamically, it can be removed without requiring a rebuild of your application. A module has to be installed as part of the deployment or update process, and once a module is installed, it is very difficult to undo.

What is the difference between plugin and application?

Typically an app (short for “application”) is a standalone, often compiled, piece of code that runs on its own to accomplish a task or series oftasks. A plugin typically runs ontop of another application, leveraging some its code and expanding the host app's functionality.

What is the difference between a plugin and an extension?

1. The main difference between the two is that plug-in provides extra functionality which does not modify the core functionality. While extension is made for modifying core functionality, may be provided due to version change or improvement.

What is plugin and why it is used?

plug-in, also called add-on or extension, computer software that adds new functions to a host program without altering the host program itself. Widely used in digital audio, video, and Web browsing, plug-ins enable programmers to update a host program while keeping the user within the program's environment.


2 Answers

I vote for plugin.

A plugin extends the capabilities of a larger application. That sounds exactly like what your address book is doing.

A library is a collection of subroutines or classes used to develop software. I think any component that instantiates its own database falls outside the scope of a library.

like image 139
dbyrne Avatar answered Oct 12 '22 22:10

dbyrne


This is a matter of opinion and of taste. Libraries tend to not do that much on their own but enable you ("the programmer") to do things. Though that could be said of many plugins as well...

like image 43
Jakub Hampl Avatar answered Oct 12 '22 22:10

Jakub Hampl