Episode 13: JavaScript Libraries Overview
Last epsidode I spoke with Yahoo!’s Matt Sweeny, primary responsible for two YUI utilities, however in this episode I spoke just a bit on some of the benefits of other libraries and how they can be useful for you. In particular I picked apart some of the entries from the jQuery Event Selector showdown and speaked a bit on the shortcomings and benefits of each. Nonetheless, the driving factor for any library is that it is beneficial for you and that you can get things done with it. Since I obviously hold close ties to YUI I wanted to make it clear of what it does and doesn’t do.
Other than YUI (which I barely even talked about), I touched a bit on Sam’s Prototype, John’s jQuery, and Justin’s Event Selectors. Others I mentioned but didn’t go into detail (mainly because I don’t know them as well) was MochiKit and Alex’s Dojo Toolkit.
In the News
Actually, I really didn’t have much except for Jack Born’s latest jump into doing his side project at 15 Days of jQuery.
Download this Episode
This podcast is 40 minutes.
Download Episode 13: WSwI Podcast: JavaScript Library Overview













May 29th, 2006 at 4:40 pm
Good show Dustin! I’ll have to take you up on that beer the next time I’m in Silicon Valley.
I think the ‘competition’ between the different Javascript libraries is interesting because everyone has different desires - as you stated in your show. Some people care about small file size, some people see that as being unimportant, some people care about namespace issues, some people don’t. I imagine that a giant grid of all the features by all the libraries would be helpful to developers. Although, first, it would probably be good to take a survey to figure out exactly what it is that people want. If this interests you, we could probably work something up together.
Oh, and let me know if you’re looking for someone else to interview, I’d be happy to talk about jQuery and other Javascript libraries.
Keep up the good work!
May 29th, 2006 at 8:25 pm
Dustin,
Thank you very much for your mention of “15 Days of jQuery”. As always, I enjoyed the show.
May 30th, 2006 at 4:25 am
Not a bad show, I just finished hearing it. As (I think) you said every person looks for different things when looking for a javascript framework (or utilities toolbox).
Actually these days I’m kinda looking everywhere and weighting the good and bad (for me) of all these “views” of the problem, so the subject of your show was perfect for me at this particular moment.
About the show, maybe it’s me, or my English, or the fact that I hear it on the way to work, but when you read code, you lose me. A first approximation to the giant grid John mentioned above would have been more useful.
I agree with you in the (little) importance of filesize, but I was surprised you didn’t mention the jQuery aspect most appealing to me: CSS3 selectors. How cool is to be able to target ‘#tabs>div:lt(5)’ ? :)
Still undecided, though…
May 30th, 2006 at 8:26 am
@John, You’re on. I’ve got the 12 in the fridge ;). I agree that this whole “competition” thing is rather weird, especially coming from the library developers themselves. It’s interesting to see us all nitpick around, and in the end, none of us are really questioning what the developer (Consumer) of these libraries want. In the end I’m not really sure if there ‘is’ going to be an ultimate lib, and maybe it’s better off that way.
I for one wouldn’t want you to change your jQuery just because of the ‘$’ namespace and it’s “shorthandness” of it all. It most definitely appeals to some people out there and you have a good thing going on for you.
Interview et ‘al, I can send you some details on how to get setup for a VOIP interview.
@Jack, No problems linking you for the 15 days event. Just keep up your end ;) Let’s see some cool stuff :)
@Antonio, I agree that really, there is no way to “speak code” over a podcast. I only mention a few of the code snippets to give a general idea, but I never actually expect someone to follow it. However it is a podcast of which you can download, rewind, and play again… but then again I doubt people want to spend that amount of time.
I have a question for you on the other hand. Since you mentioned you listen to it on the way to work, how was the sound quality for you on this one? Better than the last ones? How’d you like that beatbox in the end? :p
May 30th, 2006 at 1:28 pm
Hi Dustin! Nice episode.. I like when you talk about DOM, DHTML, AJAX and all JS stuff.
ps. Did you say “Weed Beer” ? =]
May 30th, 2006 at 1:44 pm
shfx: Wheat Beer. As opposed to most traditional beers that use Rice.
May 30th, 2006 at 2:00 pm
oh… Cheers!
May 30th, 2006 at 9:27 pm
Good episode. I agree that it’s a little hard to follow when you “talk code,” but I don’t know how else one would do it.
I’d never thought of the YUI library like that, where it just gives you a few tools rather than trying to do things for you. Interesting approach, though I still wish they didn’t go so heavy on the namespacing stuff. One or two seems good enough to me.
May 31st, 2006 at 9:37 am
Elliot, The namespacing imo is yet another weak argument that I think folks also need to let go of. Let me know when you find of a real bug ;). I do really think it’s for the benefit of the entire library and all the namespaces are completely inline with the tasks you’re getting done on each. Especially when most of the times when you’re going to use it, you’ll be using them in a private scope such as :
So really, the namespaces really aren’t that bad. When you’re working with the DOM, you know exactly what to refer to (YUD). When you’re working with events, you point to YUE.
Again, that also goes inline with just what I was saying. It allow you as a developer to put in just the right amount of verbosity as you want. For instance, if you want less verbosity, and you’re a dollar lover. Simply do this:
So thus I am still all for the namespaces :). Try it on for at least a week, then lemme know if you get tired of it. Deal?
May 31st, 2006 at 9:39 am
FYI everyone, I’ve allowed the <pre><code> </code></pre> combo in the comments. No more crappy code postings :). Just make sure you escape your entities.
May 31st, 2006 at 9:59 am
> As opposed to most traditional beers that use Rice.
By traditional beer, you mean cheap ass american beer right? Rice in beer is about as traditional as drinking your beer with ice cubes.
Wheat Beer in Wikipedia
May 31st, 2006 at 11:11 am
@Justin: lol! Leave it to a true beer connoisseur :)
May 31st, 2006 at 12:48 pm
> Leave it to a true beer connoisseur
Why thank you, I consider that quite a compliement :)
Btw, I love me some rice beer (sometimes). Nothing beats a tallboy Lone Star or Pabst on those hot Texas days, then again Wheat beer is good for that too.
May 31st, 2006 at 8:30 pm
I guess you’ve got me cornered there…
May 31st, 2006 at 10:34 pm
sall good. Just try it for a week then lemme know if it becomes a hassle. However if Prototype is working out great for you, then by all means, keep using what you know best if it helps you get the job done :)
June 1st, 2006 at 8:08 pm
You mention referencing javascript files “correctly” with gzip to help with file size? What’s that all about? Can you post a reference?
Thanks for the show and intro to YUI!
June 3rd, 2006 at 11:44 pm
Hey Gib, I mentioned that in the beginning of this article. Hopefully that helps :)
June 7th, 2006 at 4:34 am
Could I go a bit Off-Topics?
Dustin, I wrote a mini-framework for an application
that i’m developing, and I would release it,
I embedded some of your function(and the Y! event also) if ,for you, there is no problem I would write the documentation(with credits to your works) and I would publish it, you can take a look of my work here:
http://rey9999.altervista.org/kenta/framework_0.1.zip
June 7th, 2006 at 11:59 pm
Really liked this show Dustin. Positive point was, in my opinion, the somewhat easier pace. Some nice not too loud music and well paced talking without too many burpy sidesteps makes a difference.
In general one of the problems I have with pod casts is that it’s not possible to skim through them. So it’s either listen to the full hour or not. Of course you can fast forward with the player, but then you completely loose track of the story. On a webpage, at least a well designed one, it’s easy to quickly skim through the content and pick out the interesting bits and focus on those. With a podcast, that’s not possible. Or at least not easy. So that’s one thing I would like to mention. A joke now and then is fine. But a little focus and structure in the story also adds a lot of value, at least for me.
So keep up the great work!
July 29th, 2006 at 5:42 pm
good,I like this
August 11th, 2006 at 1:58 am
can javascript get find number of line of a div tag? maybe something in libraries to handdle the gui matters in a page.