Tag Archives: prototype

You are not your code »

December 14th, 2012

Sam Stephenson, creator of Prototype JavaScript framework and team member at 37Signals, explains why our self-worth should not stem from the longevity of our code.

He also puts forth this worthy nugget:

In order to advance the state of the art, we have to be willing not only to try new ideas, but to retreat when those ideas prove untenable or when something better comes along.

Boy do I believe this! Trying new ideas should be something that we, as builders, and even entire companies, should make a priority. Try. Try. Try. The worst thing that can happen is that you’ll learn.

FancyZoom, rewritten using Prototype

September 4th, 2008

Earlier this year Cabel Sasser, co-founder and designer at the incredible software house Panic, released a “Smooth Javascript for Image Zooming For Your Web Pages”. The implementation was simple enough, worked really well, and had the desired outcome – which was the ability to “zoom” into images in a smooth, very Mac-like way.

John Nunemaker, of Ordered List, decided that Cabel’s implementation of this effect could use some improvement.  Not only was Cabel’s “built from scratch”, which means to say that he didn’t take advantage of any of the Javascript libraries that so many web application developers already have included in their projects, but it also relied on AJAX to load the frame’s contents.

What that means exactly, is that Cabel’s implementation retrieved the data for the “pop up” window the moment you clicked, whereas John’s actually loads all of the “pop up” window’s data that he needs on the initial page load.  Obviously both of these methodologies have their place, their pros, and their cons, but it is all about choice, isn’t it?

The one thing I do like about John’s implementation over Cabel’s is that it allows for just about anything to be loaded in the “pop up” window rather than only images.  But this is only a small distinction in that Cabel’s code could be easily modified to allow the very same thing.

Now, if someone would take the time to simply port this to jQuery so that I don’t have to…

Source: FancyZoom meet Prototype.