Browser wars.

May 18, 2007

Filed under: HTML and CSS,Philosophy — Andrew @ 9:29 pm

Somewhere in this month discovered in logs of this site that total number of visitiors who use Gecko (FireFox and Mozilla) and Opera browers became first time larger than number of Internet Explorer users. Of course this site has specific auditorium but nevertheless…

Try/catch/finally extravaganza #3

March 13, 2007

Filed under: Philosophy,Script — Andrew @ 12:55 pm

return in finally sections is a bad idea:

  function foo()
  {
    try
    {
       try { return 1/0; }  catch(e) { return 2; } finally { return 3; }
    }
    catch(e) { return 4; } finally { return 5; }
  }

Probably return allowance in finally sections is a design flaw of JavaScript language itself?

Pessimistic challenge #2

March 10, 2007

Filed under: Philosophy,Script — Andrew @ 12:09 pm

And what answer will give us following function?

  function test()
  {
    var flavour = "optimistic";
    try
    {
      return flavour = "pessimistic", "I am " + flavour + " optimist";
    }
    finally
    {
      return "I am " + flavour + " pessimist";
    }
  }
 

Test: who are you?

March 9, 2007

Filed under: Philosophy,Script — Andrew @ 2:49 pm

What will following JavaScript function return?

function test()
  {
    try
    {
      return "I am optimist";
    }
    finally
    {
      return "I am pessimist";
    }
  }

Try to answer as this is a good chance to measure your attitude :)

W3C decided to reincarnate HTML development

March 8, 2007

Filed under: Philosophy — Andrew @ 10:41 am

W3C decided to reincarnate HTML development.

Phylosophical difference between HTML and XHTML can be demonstraed by the fact that tag <html> is optional in HTML and is not in XHTML. By definition of XML (XHTML):

Definition: A data object is an XML document if it is well-formed, as defined in this specification. In addition, the XML document is valid if it meets certain further constraints.

(source)
What means that if UA (user agent, browser) can deal with loading XHTML document only when it receives closing </html> and everything inside is valid. To be short: any partial markup is not XHTML by definition and can be interpretted as such.

New forum

March 5, 2007

Filed under: Philosophy — Andrew @ 10:06 pm

We have moved forum to the new location.

For many reasons we like bbpress engine more than PHPBB.

It is not possible to convert user accounts so please register yourself again.

« Previous PageNext Page »