Re: [hybi] Is there a traffic jam?

Ian Hickson <ian@hixie.ch> Fri, 24 April 2009 07:01 UTC

Return-Path: <ian@hixie.ch>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 239FA28C6EA for <hybi@core3.amsl.com>; Fri, 24 Apr 2009 00:01:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.245
X-Spam-Level:
X-Spam-Status: No, score=-3.245 tagged_above=-999 required=5 tests=[AWL=-0.646, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8kLUvEkWpU82 for <hybi@core3.amsl.com>; Fri, 24 Apr 2009 00:01:08 -0700 (PDT)
Received: from looneymail-a3.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by core3.amsl.com (Postfix) with ESMTP id 3DBF328C71F for <hybi@ietf.org>; Fri, 24 Apr 2009 00:01:08 -0700 (PDT)
Received: from hixie.dreamhostps.com (hixie.dreamhost.com [208.113.210.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by looneymail-a3.g.dreamhost.com (Postfix) with ESMTP id 5E79B27B7D; Fri, 24 Apr 2009 00:02:25 -0700 (PDT)
Date: Fri, 24 Apr 2009 07:02:25 +0000
From: Ian Hickson <ian@hixie.ch>
To: "Thomson, Martin" <Martin.Thomson@andrew.com>
In-Reply-To: <E51D5B15BFDEFD448F90BDD17D41CFF105AD1ADC@AHQEX1.andrew.com>
Message-ID: <Pine.LNX.4.62.0904240652180.12381@hixie.dreamhostps.com>
References: <03BCE29D-7AA5-4128-9F61-446E0229479A@lindenlab.com> <E51D5B15BFDEFD448F90BDD17D41CFF105A0C46E@AHQEX1.andrew.com> <Pine.LNX.4.62.0904132352430.10339@hixie.dreamhostps.com> <E51D5B15BFDEFD448F90BDD17D41CFF105A0C476@AHQEX1.andrew.com> <Pine.LNX.4.62.0904140002360.10339@hixie.dreamhostps.com> <1cb725390904131712k292a4860pbd078bb251d3855b@mail.gmail.com> <Pine.LNX.4.62.0904140031040.10339@hixie.dreamhostps.com> <1cb725390904131752u5842c039wb3d75602c479fa45@mail.gmail.com> <Pine.LNX.4.62.0904140053050.10339@hixie.dreamhostps.com><1cb725390904131814o6040a8d3t637069a344d561bd@mail.gmail.com> <Pine.LNX.4.62.0904240546100.10370@hixie.dreamhostps.com> <E51D5B15BFDEFD448F90BDD17D41CFF105AD1ADC@AHQEX1.andrew.com>
Content-Language: en-GB-hixie
Content-Style-Type: text/css
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"
Cc: hybi@ietf.org
Subject: Re: [hybi] Is there a traffic jam?
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 24 Apr 2009 07:01:09 -0000

On Fri, 24 Apr 2009, Thomson, Martin wrote:
>
> Because all 12 year olds use strict and -T.

I was using their equivalents in the language(s) I used when I was 12. 
It's good hygiene. But it doesn't really matter either way for this code.


> I must admit that my perl is getting a wee bit rusty, but that's a 
> non-trivial piece of code.

Come now. It's barely 100 lines of code, just doing basic network I/O. My 
friends and I were writing far more complex code at 12, and I'm hardly a 
good programmer. Most of the constructs are copied straight from online 
tutorials on Perl networking.


> I hope that you are about to argue that most of that code is going to be 
> provided by Net::WebSocket or something similar.

It seems reasonable for such a library to exist, but I don't think it is 
reasonable to expect that libraries will exist, no. That's the point. You 
don't need a library. It's no more than a couple of hours' worth of coding 
for a novice like me (I'm no professional programmer).


> Otherwise, there's more than enough rope left there to hang a number of 
> software engineers that I know (admittedly, not the better ones).

The same could be said of "Hello World" in most languages, especially 
Perl. Just think how much more complex this example would be if the 
protocol was more than just sentinel-delimited frames. :-)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'