Seven clever JavaScript techniques to digest
What? Did you think “I” was going to give these techniques. Ha! Well, at least not here. See my feature on Digital Web: Seven JavaScript Techniques You Should Be Using Today. Hopefully there’s a thing or two in there that even some ninjas might find useful. Also big thanks to Matthew and Tiff for being great people to work with. Cheers.




April 24th, 2007 at 1:18 am
Wow, that’s a great article, Dustin!
This ninja has certainly learned something :)
The only odd thing was there’s no TRY in sight in your code example of point 4. But I guess that’s available in the linked article by Christian Heilmann, which I’m gonna read now.
April 24th, 2007 at 1:27 am
Great article - cheers.
Now I’ve got to do a little bit of re-factoring…
April 24th, 2007 at 4:59 am
I like three and four. I’ve probably been adding more event listeners than necessary because YUI Event allows me to chuck an array of elements at the addListener method. This probably necessitates its own bridge, as the actual callback that does stuff should probably not be extracting the <li> from the event.
April 24th, 2007 at 1:01 pm
Top-notch post Dustin. I’ll likely be putting a few of these to use over the summer.
April 24th, 2007 at 3:37 pm
Solid article, bruddah. The async and addListener are the purdiest JavaScript examples I’ve seen.
April 24th, 2007 at 4:25 pm
Hey! The right title should be “Seven Javascript techniques you MUST use today!” ^_^
I think coding it’s a way of thinking.
If you have open mind you get good code.
From A to B you have infinite routes, but only few of ‘em are interesting! :)
April 24th, 2007 at 8:31 pm
[...] Seven clever JavaScript techniques to digest (tags: web development javascript) [...]
April 25th, 2007 at 9:02 am
Nice work brother! Some good stuff in there.
Jim
April 27th, 2007 at 3:44 pm
So clear,so good…
nice article!
April 28th, 2007 at 3:43 am
Wow, I had to read those code snippets several times. Really useful tips, and most of them could be applied to other languages and situations. I really like the usage of lambda functions, something I miss in languages that do not have them.
June 1st, 2007 at 6:41 am
really efficient code. i hope it is okay with you i’m about to copy paste it as is to my website.
(i’m a complete beginner in javascript so excuse me if it is a dumb question:) about the async function, sometimes you use AJAX for form submission. don’t you need to add a header (content type) to the request in those cases?
amos
August 22nd, 2007 at 1:13 pm
Nice one Dustin
Digest is the correct word. Best article I’ve read this year. very insiteful.
Learn the patterns, save the world.
September 11th, 2007 at 9:11 am
hi dustin,
nice article
thanks
September 28th, 2007 at 9:26 am
And just when I thought I was making headway on my self-propelled journey into Web Development Land from - gasp - PICK.
Worse yet, I think I just developed a non-romantic crush on Dustin, the first programmer I’ve ever bookmarked. (Not that there’s anything wrong with a romantic crush. My father’s gay.)
And thus will my hard-won dollars be redistributed through macroeconomic channels to the pockets of the man I now (kinda) adore (sorta), as my search through Amazon and BAMM begins this very evening. Damn your insight, experience and writing style - damn them all to hell!
By which I mean, “Sweet article. Now I’m back to the drawing board!”