We help IT Professionals succeed at work.

JS library vs Js framework

Leonidas Dosas
on
97 Views
Last Modified: 2017-04-04
I looked at expert-exchange and other sites and videos but I am little confusing...I have some blind spots about the main differences of these two.
  1. Is the library a "tank" of functions that we can call every time that we need these?
  2. Is the framework a single function that we use to to do some event?
  3. Why the majority of libraries starts with an IIFE function?
If there is an article to explain with a plain words the main guide to build a library please post it.
Thank a lot
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2017
Distinguished Expert 2019
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
CERTIFIED EXPERT
Most Valuable Expert 2017
Distinguished Expert 2019
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
CERTIFIED EXPERT
Distinguished Expert 2017

Author

Commented:
Thanks a lot Julian. As a matter of fact I'm trying to go one step beyond at my js knowledge studying some js libraries and frameworks at github. My problem is to understand the basics guidelines about what is performed these two things and the  logic of code construction. I read eg that jquery library returns wrapper functions to manipulate the DOM elements..and I wondering about the way that jquery is doing this.
CERTIFIED EXPERT
Most Valuable Expert 2017
Distinguished Expert 2019
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
CERTIFIED EXPERT
Distinguished Expert 2017

Author

Commented:
Maybe is a change for someone to do a beginners guide  article about libraries and frameworks in javascript. I see a lot of excellent codes that I can't determined how they structured.
CERTIFIED EXPERT
Most Valuable Expert 2017
Distinguished Expert 2019

Commented:
There is a lot of opportunity for this but the landscape is exploding so rapidly difficult to come up with something that retains relevance.

With frameworks like Angular and React (which is more of a library) along with Hybrid environments like Cordova and Appcelerator etc - JavaScript development is going exponential with new ideas coming out regularly. When one writes such an article in order for it to have practical value in terms of a "how-to" it is going to need to be quite specific in what it targets.

For instance we could narrow the focus down to DOM manipulation - but the argument there is that jQuery already has this space covered so use jQuery and make your library in accordance with jQuery guidelines.

If such an article was to be written though - what would you ideally like to see in it?
CERTIFIED EXPERT
Distinguished Expert 2017

Author

Commented:
I would like to see the follow:
1. Definition
2. General guidelines structure and design.
3. A simply example for each of these
4. An  explained example like datatables  that you posted.
CERTIFIED EXPERT
Most Valuable Expert 2017
Distinguished Expert 2019

Commented:
A simply example for each of these
Just to clarify "each" - can you give me a list
CERTIFIED EXPERT
Distinguished Expert 2017

Author

Commented:
One simly example for framework and one for library
CERTIFIED EXPERT
Most Valuable Expert 2017
Distinguished Expert 2019

Commented:
Ok - will give it some thought.
CERTIFIED EXPERT
Distinguished Expert 2017

Author

Commented:
Thank a lot. As you understood I made a indirect request to you about the article. I hope I am not adding you an adittional effort, but I think that this article is going to be usefull not only for me but and to others experts.