473,789 Members | 2,860 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript Library

Hello,

I would like to use a javascript library to simplify my coding
process.
I know a few: JQuery, Dojo, Yahoo UI, ...

Which one do you advice me to use?

Thanks,
Miguel

Oct 29 '07 #1
61 3089
shapper wrote:
I would like to use a javascript library to simplify my coding
process. I know a few: JQuery, Dojo, Yahoo UI, ...

Which one do you advice me to use?
Until further notice: yours.
PointedEars
--
var bugRiddenCrashP ronePieceOfJunk = (
navigator.userA gent.indexOf('M SIE 5') != -1
&& navigator.userA gent.indexOf('M ac') != -1
) // Plone, register_functi on.js:16
Oct 29 '07 #2
On Oct 28, 5:48 pm, shapper <mdmo...@gmail. comwrote:
Hello,

I would like to use a javascript library to simplify my coding
process.
I know a few: JQuery, Dojo, Yahoo UI, ...

Which one do you advice me to use?
This question comes up frequently on comp.lang.javas cript. There is
currently a thread that shows the feeling of many of the regulars here
that none of these libraries will do...

<URL: http://groups.google.c om/group/comp.lang.javas cript/browse_frm/thread/0939ea42f3f7647 f/7913289a7a41be9 7#7913289a7a41b e97>

Peter

Oct 29 '07 #3
On Oct 28, 8:50 pm, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
wrote:
shapper wrote:
I would like to use a javascript library to simplify my coding
process. I know a few: JQuery, Dojo, Yahoo UI, ...
Which one do you advice me to use?

Until further notice: yours.
Richard, do you still assert that no one is saying "write it all
yourself"?

Oct 29 '07 #4
On Oct 29, 11:26 am, Brian Adkins <lojicdot...@gm ail.comwrote:
On Oct 28, 8:50 pm, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
wrote:
shapper wrote:
I would like to use a javascript library to simplify my coding
process. I know a few: JQuery, Dojo, Yahoo UI, ...
Which one do you advice me to use?
Until further notice: yours.

Richard, do you still assert that no one is saying "write it all
yourself"?
I don't see Richard in this thread. Regardless, your library does not
have to be 100% self-written. IIRC, Richard stated something to that
effect in the other "please recommend a library" thread.
Oct 29 '07 #5
On Oct 28, 7:48 pm, shapper <mdmo...@gmail. comwrote:
I would like to use a javascript library to simplify my coding
process.
I know a few: JQuery, Dojo, Yahoo UI, ...
Which one do you advice me to use?
There are pros and cons to each, but I recommend jQuery. It is
powerful, compact, easy to understand, and has an active support
community.

Matt Kruse

Oct 29 '07 #6
On Oct 29, 12:01 pm, Matt Kruse <m...@mattkruse .comwrote:
On Oct 28, 7:48 pm, shapper <mdmo...@gmail. comwrote:
I would like to use a javascript library to simplify my coding
process.
I know a few: JQuery, Dojo, Yahoo UI, ...
Which one do you advice me to use?

There are pros and cons to each, but I recommend jQuery. It is
The first two are right out. Why take the time to learn an API that
has terrible code behind it. People would be better off spending time
writing their own terrible code. At least they would learn something
worthwhile in the process.
powerful, compact, easy to understand, and has an active support
community.
Powerful perhaps, but the copy I have here is 82K. Perhaps it would
lose 30K or so minified.

Having recently looked over the code, I can tell you it is poorly
written and full of mistakes. Any time saved coding will come back to
you in maintenance and trouble-shooting.

Oct 29 '07 #7
On Oct 29, 11:25 am, David Mark <dmark.cins...@ gmail.comwrote:
The first two are right out. Why take the time to learn an API that
has terrible code behind it. People would be better off spending time
writing their own terrible code.
Learning the API takes, perhaps, a few hours. Even if it does have
terrible code behind it (it does not), the improvement in end result
will still be beneficial to most, because most are already writing
terrible code that doesn't even have the benefit of working most of
the time.
Powerful perhaps, but the copy I have here is 82K. Perhaps it would
lose 30K or so minified.
There is a minified download option. Check it out.
Having recently looked over the code, I can tell you it is poorly
written and full of mistakes.
Without any examples or real critiques to back up that broad
statement, it's worthless.

I've been writing javascript for over 10 years, and I've seen poorly
written code. jQuery is not poorly written. Nor is it "full of
mistakes".

I can see things in the code that I would change and improve, and a
number of them are actually already in as tickets for changes in
future versions. No free collaborative effort is without its problems.

Would you also throw out the Wikipedia as "junk" because you find an
article with technical errors?
Any time saved coding will come back to
you in maintenance and trouble-shooting.
My real-world experience differs from your hypothesis. I can measure
the _huge_ benefits of using jQuery in real dollars, and it is
significant.

I'd love to hear about your experience with jQuery and the maintenance
and trouble-shooting that you were required to do.

Matt Kruse

Oct 29 '07 #8
On Oct 29, 12:47 pm, Matt Kruse <m...@mattkruse .comwrote:
On Oct 29, 11:25 am, David Mark <dmark.cins...@ gmail.comwrote:
The first two are right out. Why take the time to learn an API that
has terrible code behind it. People would be better off spending time
writing their own terrible code.

Learning the API takes, perhaps, a few hours. Even if it does have
terrible code behind it (it does not), the improvement in end result
Run it through JSLint. Then search it for "userAgent. " Then look at
the logic that tests for a function. That's three strikes right
there.
will still be beneficial to most, because most are already writing
terrible code that doesn't even have the benefit of working most of
the time.
How is it beneficial to swap one's own terrible code for the terrible
code of another. Is it easier to debug somebody else's code?
>
Powerful perhaps, but the copy I have here is 82K. Perhaps it would
lose 30K or so minified.

There is a minified download option. Check it out.
Isn't that what I said? Running it through a minifier will lose about
30K. I just tried it here and my estimation was almost exactly right.
>
Having recently looked over the code, I can tell you it is poorly
written and full of mistakes.

Without any examples or real critiques to back up that broad
statement, it's worthless.
Try searching this very newsgroup for jQuery. You will find lots of
examples.
>
I've been writing javascript for over 10 years, and I've seen poorly
Lots of people can make that claim. How many of them are competent to
script browsers?
written code. jQuery is not poorly written. Nor is it "full of
mistakes".
Then despite your vast experience with JavaScript, you still don't get
it.
>
I can see things in the code that I would change and improve, and a
number of them are actually already in as tickets for changes in
That's comforting.
future versions. No free collaborative effort is without its problems.

Would you also throw out the Wikipedia as "junk" because you find an
article with technical errors?
That is an odd comparison.
>
Any time saved coding will come back to
you in maintenance and trouble-shooting.

My real-world experience differs from your hypothesis. I can measure
the _huge_ benefits of using jQuery in real dollars, and it is
significant.
And how would you quantify the benefits of "using jQuery" in dollars?
>
I'd love to hear about your experience with jQuery and the maintenance
Having read the script, I concluded it was worthless. Therefore, I do
not use it.
and trouble-shooting that you were required to do.
By the same token, I do not have to trouble-shoot it.

Oct 29 '07 #9
On Oct 29, 12:42 pm, David Mark <dmark.cins...@ gmail.comwrote:
Run it through JSLint.
Which is about as useful as validating HTML. Great for academic
purposes, perhaps it will catch a few errors, etc.
But in the end it doesn't matter if code passes analytics, just if it
accomplishes the goal or not. My goal never includes "pass
validation". Validation is merely a tool to reach my goal, when
needed.
Then search it for "userAgent. "
Browser sniffing is not encouraged, and in some cases in jQuery it is
really unnecessary. There are cases where it is beneficial.
Rather than writing lengthy logic to solve for every possible case,
you can write shorter logic to solve for a subset of cases you care
about.
It's not ideal, but it is a strategy. The amount of browser sniffing
in jQuery is minimal.
Then look at the logic that tests for a function.
It may not be perfect, but have you ever come across a real-world case
where it has failed for you?

Me neither.
How is it beneficial to swap one's own terrible code for the terrible
code of another. Is it easier to debug somebody else's code?
jQuery's code is not terrible. It is a substantial improvement over
most javascript code written by average developers. In my experience.
There is a minified download option. Check it out.
Isn't that what I said? Running it through a minifier will lose about
30K. I just tried it here and my estimation was almost exactly right.
The packed version is 26kb. Plenty small.
Having recently looked over the code, I can tell you it is poorly
written and full of mistakes.
Without any examples or real critiques to back up that broad
statement, it's worthless.
Try searching this very newsgroup for jQuery. You will find lots of
examples.
But why should I look up past examples? You said you recently looked
over the code and found that it was poorly written and full of
mistakes.
Surely you could provide some examples from your recent investigation?
I've been writing javascript for over 10 years, and I've seen poorly
Lots of people can make that claim. How many of them are competent to
script browsers?
I'm not sure "lots of people can make that claim". I consider myself
to be very knowledgeable about Javascript development, and I disagree
with your conclusions. Surely not everyone who disagrees with you is
categorically an amateur?
written code. jQuery is not poorly written. Nor is it "full of
mistakes".
Then despite your vast experience with JavaScript, you still don't get
it.
What don't I get? You are not providing any actual arguments. You
might as well just say "You're stupid!" and stick your tongue out.

Further, have you considered that perhaps it is you who just doesn't
get it?
Would you also throw out the Wikipedia as "junk" because you find an
article with technical errors?
That is an odd comparison.
Perhaps. The point is, just because you notice a few flaws in
something does not mean it is worthless. It merely means it has flaws.
Which means it was probably developed by humans. If your goal is
perfection, you'll never find it.
My real-world experience differs from your hypothesis. I can measure
the _huge_ benefits of using jQuery in real dollars, and it is
significant.
And how would you quantify the benefits of "using jQuery" in dollars?
#1:
(Previous time to develop functionality) - (current time to develop
similar functionality) = Time Savings
Time Savings * Pay Rate = Money Saved

#2:
(Number of JS bugs before) - (Number of JS bugs now) = Bug Savings
(Bug Savings) * (Avg Time to Fix JS Bugs) * Pay Rate = Money Saved

Consider the effects of introducing jquery to a large development
team:
1) Reduced time implementing similar functionality as before
2) Reduced number of bugs
3) Improvement of UI because developers have access to pre-made
plugins
4) Less time needed to write functionality from scratch and research
browser quirks
5) No problem reports from any end users

Now, how are you arguing that using jquery is not a huge benefit?

You would recommend that we stop using it and start coding from
scratch?
I'd love to hear about your experience with jQuery and the maintenance
Having read the script, I concluded it was worthless. Therefore, I do
not use it.
Then how would you know anything about an increase in maintenance
caused by using jQuery?
Can you quote the experience of anyone else who has used it and found
it to be a maintenance problem?
Or hell, can you quote anyone who has used it and found it to be a bad
decision for any reason?
Do you have any real-world experience with it?
If not, how do you possibly feel justified in criticizing it?

Matt Kruse

Oct 29 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2392
by: sagar | last post by:
Hello friends, I am developing a AJAX based IM application. For this is need a Javascript Library to built iframe/div based dragable windows in a page. I will need multiple windows (for chat, offline users, online users) in the same page. Can some one suggest a Javascript library which can be used for my project.
1
1932
by: leifwessman | last post by:
Google Analytics are using a encrypted JavaScript library to send and read 1st party cookies using. The JS library can be found here http://www.google-analytics.com/urchin.js Is there a free JS library available somewhere that mimics this behaviour? I would be very interested in how Google Analytics does the magic... More info here: http://www.google.com/support/urchin45/bin/answer.py?answer=28710
17
121915
by: kartheek | last post by:
hi friends, can any one out here help me by giving me the code to connect to an MSACCESS database using javascript.
12
8926
by: pantagruel | last post by:
Hi, I'm thinking of making a WScript based JavaScript library, I can think of some specific non-browser specific scripting examples that should probably make it in, like Crockford's little JavaScripter, can anyone think of anything else. Is anyone familiar with anything similar already done. Things that I am thinking that to provide are:
1
1585
by: Lobo | last post by:
I'm wondering how expensive and (in)efficient is to use Collection type javascript library functions (similar to using Blocks), instead of repeating the 'for' iterator over and over across a large application. I'm afraid that instantiating javascript Functions to act as Blocks in these cases might require many more internal javascript resources (time / memory) compared to using the 'for' statement - ?. I would not want this to be the...
3
2341
by: SagarDoke | last post by:
i am using ext js - javascript library. i wrote a program using ext class. when i was executing it, it was giving error, that ext class is not found. then how can i set the path of ext class. or there is any other way to implement this js file?
24
2201
by: Aaron Gray | last post by:
From what I have been looking at for Javascript library development, browsers that support Javascript 1.5/ECMAScript 3/JScript 5.5 looks like the base level to pitch at. Anyone add anything ? Aaron
0
10410
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10139
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9020
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7529
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5418
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4093
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3701
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.