Tuesday, October 14th, 2008
Bacon - a sizzling new YUI utility
Beware of what you ask for. After Stephen Woods asked on Twitter why there are just no Bacon utilities in the browser Dav Glass of the YUI team went right to it and created YUI Bacon.
YUI bacon is now the only JS solution to fry any HTML element with a few lines of code:
-
var foo = new YAHOO.util.Bacon('demo');
-
var bar = new YAHOO.util.Bacon('demo2');

As always with Dav, the utility comes with a full API and documentation, features useful methods like fryBacon() and stopFryBacon() and there are several clever custom events (baconReady, baconDone, baconStart) to subscribe to.
If you dive deeper into the workings of bacon you also find hidden messages of what the future might hold: void cook() An override method for extending this class to maybe fry eggs too.
I am now waiting for jQuery cocktail sausage and protoype T-Bone.












where no this planet is it already friday? …wanna be there… ;-)
This will go great with breakfast.nom().nom().nom().nom() extension I’ve been toying with. Thanks!
Apparently Bacon is the universal common-ground for JavaScript libraries:
http://acko.net/blog/abusing-jquery-animate-for-fun-and-profit-and-bacon
wow, John, a cloud of bacon. This is taking the web to the next dimension.
Seems pretty good for v1, but we need something more enterprise. Something like enterprise fizz buzz
I’m just glad I’m finally having some influence on the future of web development.
MooTools only works with beef products.
I think we can interpret this as a direct challenge to the jQuery team. 1.3 better have $(’div’).bacon({
brand: “farmer john”,
flavor: “maple”,
pieces: 2
}).teleport(’here’);