The most expensive javascript code

Original author: Hallvord RM Steen
  • Transfer
Not so long ago, Opera Software experienced an urgent need for new servers. Not just a few servers, we planned the development of Opera Mini, Opera Link and My Opera also grew very quickly. We anticipated crazy server loads and we were right.

It was clear that we had to make not a small investment in server capacities (buying such things ) We

wrote out a check for a tidy sum. I am sure system administrators then wrote boiling water from happiness. Salivations also flowed from people from large hardware companies. They immediately appeared in our office in Oslo with "probes" - test servers.

Despite this, one of the world's largest suppliers of iron, with the name of which every reader is familiar, whose hardware resources, in most cases we use right now, have not completed their homework. When the Opera system administrators loaded the server for tests of the web-based admin panel, they found one condition that made everyone crazy, including CTO.

This is the only condition, apparently, was written by some subcontractor to whom they gave the development of the admin interface for outsourcing, which led to millions of losses in Norwegian kroner.

if (is.opera)
{
  window.location.href="config/error.htm";
}

* This source code was highlighted with Source Code Highlighter.

Also popular now: