max7
asked on
jQuery plugin vs jQuery core libary
Greetings,
Consider the following instructions:
Would any one interpret that to mean that jQuery plugins cannot be used? My thought was since a plugin is not a JS library, the use of plugins would be permissible.
Am I missing something?
Consider the following instructions:
No other external JS libraries may be used besides the jQuery core.
Would any one interpret that to mean that jQuery plugins cannot be used? My thought was since a plugin is not a JS library, the use of plugins would be permissible.
Am I missing something?
No. "jQuery core" excludes anything else, even plugins. Plugins are NOT jQuery core.
The above comment is correct. A plugin only extends the core functionality of jQuery, it is commonly a separate file included after jQuery.
ASKER
ok ... but I guess the wording is confusing to me specifically:
Am I correct in that a jQuery plugin is NOT a library?
No other external JS libraries ...
Am I correct in that a jQuery plugin is NOT a library?
From what I can tell you are correct in your understanding, a jQuery plugin only extends the jQuery Core library.
TL;DR
A jQuery plugin is not a library.
TL;DR
A jQuery plugin is not a library.
no, I think you are not.
'Library' or 'plugin' in this case is just different wording for "a bunch of prepackaged JS functions that provide you functionality you sould be coding yourself in the first place".
A plugin is always a library. It's just a library which abides to a specific API, in this case the jQuery plugin API.
'Library' or 'plugin' in this case is just different wording for "a bunch of prepackaged JS functions that provide you functionality you sould be coding yourself in the first place".
A plugin is always a library. It's just a library which abides to a specific API, in this case the jQuery plugin API.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As I stated: "... the above comment is correct from a technical standpoint". Without context we can only be relative in our understanding.
Although we can truly be sure one thing: The dog did eat my JavaScript.
Although we can truly be sure one thing: The dog did eat my JavaScript.
ASKER
'Library' or 'plugin' in this case is just different wording for "a bunch of prepackaged JS functions that provide you functionality you sould be coding yourself in the first place".
So I guess you never use plugins? My hat is off to you ;)
But I think there is a tremendous difference between a single plugin and an entire JS library. Comparing the two as if there is essentially no difference would be like comparing a single book to entire library of books. Both contain words, ideas, thoughts, etc but you would never refer to a single book as a "library" for obvious reasons.
from the standpoint of the question asked, I am also right.
Notice the contradiction:
...........
Right, I thought this as well ... setting aside the issue of "is a plugin a JS Library?" the fact that the original statement in question says that only the jQuery core can be used precludes the use of plugins.
If all else fails, you can always say "The dog ate my JavaScript"
;)
Yes, sometimes I wish I could say this! :)
ASKER
Thanks for hashing this out with me guys, very interesting discussion!
I beg to differ on this:
There is a fundamental difference between a library and a book, as there is a difference between a function and a method in a class. A book is a container for a story, etc., while a library is a container for books. You can have a library with just one book, and it still is a library.
The problem here is a matter of categorization. That's why I mentioned philosophy.
But this is also a frame of mind absolutely indispensable for a programmer.
It's when we overlook these subtleties that we mess up.
PS: I don't code everything I need, I was saying that because this looks like it's your homework assignment we're talking about, so... if the prof tells you to not use other libraries then you should code it yourself.
Comparing the two as if there is essentially no difference would be like comparing a single book to entire library of books.
There is a fundamental difference between a library and a book, as there is a difference between a function and a method in a class. A book is a container for a story, etc., while a library is a container for books. You can have a library with just one book, and it still is a library.
The problem here is a matter of categorization. That's why I mentioned philosophy.
But this is also a frame of mind absolutely indispensable for a programmer.
It's when we overlook these subtleties that we mess up.
PS: I don't code everything I need, I was saying that because this looks like it's your homework assignment we're talking about, so... if the prof tells you to not use other libraries then you should code it yourself.