with Imagination: by Dustin Diaz

./with Imagination

A JavaScript, CSS, XHTML web log focusing on usability and accessibility by Dustin Diaz

Seven clever JavaScript techniques to digest

Monday, April 23rd, 2007

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.

14 Responses to “Seven clever JavaScript techniques to digest”

  1. Harmen Janssen

    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.

  2. Remy Sharp

    Great article - cheers.

    Now I’ve got to do a little bit of re-factoring…

  3. Mike Healy

    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.

  4. Paul Stamatiou

    Top-notch post Dustin. I’ll likely be putting a few of these to use over the summer.

  5. Robert Otani

    Solid article, bruddah. The async and addListener are the purdiest JavaScript examples I’ve seen.

  6. H5N1

    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! :)

  7. links for 2007-04-25 « Gevã Schaefer

    [...] Seven clever JavaScript techniques to digest (tags: web development javascript) [...]

  8. Jim A.

    Nice work brother! Some good stuff in there.

    Jim

  9. kentaromiura

    So clear,so good…
    nice article!

  10. Leif

    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.

  11. amos

    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

  12. Gavin Brogan

    Nice one Dustin
    Digest is the correct word. Best article I’ve read this year. very insiteful.
    Learn the patterns, save the world.

  13. Maarz

    hi dustin,
    nice article
    thanks

  14. Rob McDonald

    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!”

Get "JavaScript Design Patterns"

"As a web developer, you'll already know that JavaScript™ is a powerful language, allowing you to add an impressive array of dynamic functionality to otherwise static web sites. But there is more power waiting to be unlocked--JavaScript is capable of full object-oriented capabilities, and by applying OOP principles, best practices, and design patterns to your code, you can make it more powerful, more efficient, and easier to work with alone or as part of a team."

Buy JS Design Patterns from Amazon.com Buy JS Design Patterns from Apress

All content copyright © 2003 - 2009 under the Creative Commons License.

Archives | Blog Search