Category: Web

quotation

It’s hard for me to write a WTF — not because I can’t remember one, but because I remember too many. Netscape was one giant WTF — or, as they called it back then, AOL. The company had grown so inept that “WTF” became just another thing we said each day, like “Hey,” or “What time is it?” or “We just lost another 5%,” or “Marketing wants to replace the Back button with an ad for Bowflex.” In fact, as I’m sure you know, the Mozilla movement itself was born when Jim Barksdale looked at the old Netscape 4.x codebase and announced, with tremendous gusto and wondrous pride: WTF?

Blake Ross (for thedailywtf.com)
link
6

I consider myself humbly fortunate to have been added as a member of Prototype‘s new core development team. My first patch: optimizing getElementsByClassName. Browsers with XPath support get an eightfold performance gain; others get a modest gain of 50–100%.

code

Viewport Dimensions in JavaScript

Adapted from the functions posted on QuirksMode.

var Client = {
  viewportWidth: function() {
    return self.innerWidth || (document.documentElement.clientWidth || document.body.clientWidth);
  },

  viewportHeight: function() {
    return self.innerHeight || (document.documentElement.clientHeight || document.body.clientHeight);
  },
  
  viewportSize: function() {
    return { width: this.viewportWidth(), height: this.viewportHeight() };
  }
};

Alcatraz

Ever wonder how much that land would be worth if the prison weren’t there?

Flickr
September 2, 2006
Photo: Alcatraz