i am dustin diaz

a JavaScriptr...

boosh.

don't worry about it.

Crouching Ender, hidden command

Friday Apr 22 2011

For those of you following Ender (the open micro-to-macro API for composing your own custom JavaScript library), today we have a fresh new CLI (command line interface) that will help you manage your Ender packages. It's pretty rad ('cause, you know, we like it) and it makes it extremely useful when maintaining one Ender project, to another. So without further fuss, let's cut this post short and check out this short video composed by everyones favorite JavaScript hipster and core Ender contributor (heh, there's only two of us), @fat.

 

Ender.js - The open submodule library

Monday Apr 4 2011

With great excitement it brings me pleasure to announce an all-to-predictable endpoint of recent events ? Ender.js, an open submodule library. Ender is a small yet powerful JavaScript library composed of application agnostic opensource submodules wrapped in a slick intuitive interface. At only 7k Ender.js can help you build anything from small prototypes to providing a solid base for large-scale rich applications.

 

Qwery - The Tiny Selector Engine

Wednesday Mar 23 2011

It's true. The world needs another JavaScript DOM Selector Engine. So without further fuss - introducing Qwery - The Tiny Selector Engine. It's a port from where Simon Willison left off with his getElementsBySelector in 2003, and believe it or not, this is exactly where jQuery started.

Qwery supports all the basic CSS1 & CSS2 selectors, plus the additional (most important) attribute selectors from CSS3. Additionally it allows multi-selects (div,p) as well as context-aware selectors (like jQuery.find()).

Last but not least, it's open source awaiting your valuable feedback to make it leaner and faster. There are tests to ensure its integrity, however sans-benchmarks. Although, it should be noted it does support querySelectorAll when available in the browser (to bring 2003 to modern times).

 

Klass

Tuesday Mar 8 2011

The concept of formal classes in JavaScript has led the internet develosphere amuck since the dawn of time day JavaScript was invented. From Crock's explanation on prototypal inheritance to Dean's Base one and two, from Prototype's Class to Mootool's Class, and from debunking objects to getting back to basics, the JavaScript community thrives on systems that help make working with JavaScript classes easier — despite it still being a "classless" language.

Well, I'm here to introduce one more that will keep things simple. More after the break.

 

Smallest DOMReady code, ever.

Wednesday Feb 23 2011

This evening after tooling around with trying to optimize bits and pieces from a recently formed project ($script.js - async JS loader & dependency manager), I decided to look further into shortening the DOMReady code - since part of the goal is to have the smallest amount of code possible. Read on to see the solution.

 

$script.js - Another JavaScript loader

Thursday Feb 17 2011

God forbid a JS utility suffixed with 'another' in the title. But there was no other option. Thus introducing $script.js: an asynchronous JavaScript loader and dependency manager with an astonishingly impressive lightweight footprint of only 643 BYTES! (yes, you read that correctly). Like many other script loaders, $script.js allows you to load script resources on-demand from any URL and not block other resources from loading (like CSS and images). Furthermore, it's unique interface allows developers to work easily with even the most complicated dependencies, which can often be the case for large, complex web applications. Check out the slick interface after the jump.

 

this is who i am

Hi, my name is Dustin Diaz and I'm an Engineer @Twitter, co-author of JavaScript Design Patterns, co-creator of the Ender JavaScript Framework, a photographer, and an amateur Mixologist. This is my website. Welcome!

On this site I write about JavaScript. You can also follow along with my open-source work on Github.