jQuery is JS library. what the term library means? [closed] - javascript

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
i don't understand the meaning of the word library -
regarding to jQuery: will it be right to say that "library" is a huge file with many plug ins that are ready to use?

jQuery is a fast and concise JavaScript Library that simplifies HTML
document traversing, event handling, animating, and Ajax interactions
for rapid web development. jQuery is designed to change the way that
you write JavaScript.
All this means is that jQuery itself does not do anything. A library is "a collection of resources used to develop software". jQuery allows you to write cross-browser JavaScript a heck of a lot easier than it would be without it.

A library is something that extends a base langage. So in this definition jQuery is a library

A small(not huge!!!) file (32K only)... With many many functions and features.
Libraries contain code and data that provide services to independent programs. This encourages the sharing and changing of code and data in a modular fashion, and eases the distribution of the code and data.
Wikipedia

Related

Which design pattern to learn first for javascript/jquery? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I want to learn a pattern / process for making and organising proper javascript applications. I am beginning to use OOP to simplify sections of my code, but the code is still messy so I need a process to build bigger things effectively. Should I be thinking about MVC, namespaces or libraries? Not sure if I want to choose a framework yet but any advice/suggestions is greatly appreciated!
jQuery is the best Javascript framework and you can start looking on it following the official website.
Following this blog you can find many tutorials and lessons as well.
Then if you are interested in MVC pattern to use with Javascript I suggest Backbone.
Here is all you need :
http://dochub.io/#javascript/
http://dochub.io/#jquery/
the basic knowledge of JavaScript is good to learn jquery
since the jquery is the library made in JavaScript you can manipulate and understand jquery better

What to use to refactor the javascript / jQuery of a web application to use require.js and jasmine [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I hope this question is not too general, but i haven't found any good tutorial on how to do the transition from standard javascript / jQuery code to modular / tested code.
Mmy new task is the complete refactoring of the javascript of our wordpress plugin.
Our current code is standard jQuery code, thrown all into a file, with checks on the existance of dom elements to understand on what page we are in and attach the correct event handlers.
My goal is simply to write more manteinable and clear code, and introduce tests in the process.
My approach would be:
Try to modularize code in separate files (one file for each page) and use require.js to load only the required code.
write some tests with jasmine/sinon and try to adapt the esisting code so that the tests pass
Have you got any other suggestions/best practice?
Can you share some example on how you approached similar tasks?
I was thinking about bringing in an mvc framework but if i can stick to standard jQuery code i think it's easier for the development team because it doesn't add complexity

How to create a web crawler with Node.js? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I just recently got interested in how search engines work, and I found out that they use "bots" or "webcrawlers". I immediately started wondering about how do these things work and I wanted to create one! So, first of: how do you make a program that requests a page from a server? It would be awesome if you gave me a simple example in JavaScript (I'm running it as a normal scripting language using Node). Next, is there a Node module that let's me interpret HTML? Create a DOM for me so I can cycle trough all the links and so on? Correct me if I'm wrong but I guess it's done like that... Any examples in C++, C or Python are warmly welcomed as well, although I'd prefer JS or Python because I'm more familiar with high-level scripting languages.
Getting HTTP pages: node http.get (example is there)
DOM documents: jsdom (also includes examples)

Which UI library do you think is lightweight and easy to customize for web development? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I am looking for a good UI library for web development. I expected it to be lightweight which means that it should not generate too much dom structure and also easy to customizable. I have tried dijit but it is too complicated.
Besides, another concern is it seems that all the UI library is based on the core library, for example, dijit is based on dojo, jquery-ui is based on jquery. If I choose one core library, it seems it would be not a good idea to choose another type ui library.
Why would it seem that a UI library based on a core library isn't a good idea? That's a pretty good example of modularity.
At the moment, I'm pretty sure that jQuery wins. Really, the learning curve is super low and there's a huge community for it.
My own experiences with jQuery have been great so far. Ripping off scripts (either global modular stuff or widget-specific) is a breeze and generally, if you can think of something that you want to do with it that's not in the core lib, someone's already created a plugin for it.
As for the UI element, the UI lib is great and recently I've been developing with the theme roller framework, which makes skinning/theming rediculously easy.
/2cents

What is the best current Javascript templating engine? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 12 years ago.
So there are a bunch of older questions on this topic that point to a number of options available. These two questions for example are some of the most answered on the topic:
What good template language is supported in JavaScript?
jQuery templating engines
Most of the answers to both questions are from 2008.
However in the past year or so the javascript landscape has evolved considerably. For example, the .NET JQuery extensions were recently added as official JQuery plugins.
Out of the current templating engines, which is the best one to use? Here are some options I'm aware of:
JQuery-tmpl
https://github.com/jquery/jquery-tmpl
http://blog.jquery.com/2010/10/04/new-official-jquery-plugins-provide-templating-data-linking-and-globalization/
http://weblogs.asp.net/scottgu/archive/2010/10/04/jquery-templates-data-link-and-globalization-accepted-as-official-jquery-plugins.aspx
http://www.borismoore.com/2010/10/jquery-templates-is-now-official-jquery.html
(formerly an NJE project)
John Resig's Micro-templates
http://ejohn.org/blog/javascript-micro-templating/
included in underscore.js
JTemplates
http://jtemplates.tpython.com/
http://plugins.jquery.com/project/jTemplates
PURE (Pure Unobtrusive Rendering Engine)
http://beebole.com/pure/
ASP.NET Ajax Templates
http://msdn.microsoft.com/en-us/magazine/cc546561.aspx
jQuery Smarty
https://github.com/balupton/jquery-smarty
Given all these different options, which is probably the best one to choose?
I was trying to decide between Resig's Microtemplates and JQuery-tmpl, but I don't know which of the two is better or if there is a better option than either of them.
Can anyone familiar with many of the options available lend some advice on this matter?
The ASP.NET Ajax Library's DataView should not be considered. It was deprecated before release, in favor of jQuery Templates.
I've been using jTemplates for a couple years and have found it to be solid enough. However, with jQuery Templates slated for inclusion in jQuery 1.5 core, it doesn't make sense to take an external dependency that re-implements something already included in the core library. That alone is enough reason to favor jQuery Templates, assuming you're using jQuery.
It's definetely a subjective and argumentative question, I've just wanted to add performance to the list of things you may consider.

Categories