Archive for September 2009

YUI 3 first release is out

I’m more than pleased to announce that the 3rd generation of YUI is finally out, I’ve been following closely the YUI project ever since I joined Yahoo! almost 4 years ago and since then the framework has evolved incredibly, the 3rd version announced today is a complete redesign, the framework became faster, lighter and easier to use, quoting Eric Miraglia: “One of the goals of the YUI 3 redesign was to make it easy to use without sacrificing power, performance and configurability.”

Go ahead and give it a try, the YUI Blog post is a good starting point YUI 3.0.0: First GA Release of YUI’s Next-Generation Codeline

Harnessing the juice out of Yahoo! Pipes

While working on my current project at Yahoo! I had the need to aggregate different search feeds, the requirement was to have a way to pass a param to the url like search=search_term, and this would be passed along to the the feeds and it would return results from all the feeds (obviously it had to be done in the front end only), I thought about adding more YQL requests to my app but I didn’t want to change the code since we were planning on having a re-factor of this part of the code, so super Yahoo! Pipes to the rescue, it was a really easy task and got more than I asked for, like filters and sorting… the example speaks for itself: pipe example you can clone it and play with it.

You can also check all the other cool examples created by Paul Donnelly http://pipes.yahoo.com/31337 or even check Pipes Blog for their latest updates.

Fast min/max in arrays

This morning while commuting to the office, reading JavaScript for Web Developers, I bumped into a question: how could I improve a well known algorithm that gets the smallest or the largest number in an array by using built-in Math methods such as Math.min and Math.max. For those not familiar with these methods, they return the smallest or the largest number respectively from a list of zero or more numbers passed as parameters, e.g.: Math.min(4,3,9,6) returns 3, Math.max(4,3,9,6) returns 9. I was wondering if calling such methods using apply and an Array as argument would work. I could hardly wait to get to the office to test it out on my Firebug console. I first tried:

Math.max.apply(Math, [4,8,3,5,1,2]);

And bingo! It works!

Continue reading ‘Fast min/max in arrays’ »

WebKit Page Cache

Performance on the web has always been a hot topic to talk about specially when you talk about page load, but you don’t see as often people talking about perceived load which is related to how fast the interface responds to the user interaction, in this area WebKit based browsers like Safari and Chrome from my point of view have always been ahead.

Continue reading ‘WebKit Page Cache’ »