http://www.perlmonks.org?node_id=935627


in reply to Reinventing the wheel

You never really know how a wheel works, until you tear it apart. I bet you now know more than most about the http protocol, now that you built your own. I think building your own webserver is a great educational exercise, because it exposes you to all the problems involved, and also makes you appreciate the pre-made wheels that are given to us.

I think this also applies to object-oriented programming.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^2: Reinventing the wheel
by cavac (Parson) on Nov 03, 2011 at 19:23 UTC

    I bet you now know more than most about the http protocol, now that you built your own.

    I don't claim to know all of http. But the important parts i think i understand, yes.

    I think building your own webserver is a great educational exercise, because it exposes you to all the problems involved, and also makes you appreciate the pre-made wheels that are given to us.

    There are a few quirks in the protocol, but i spend at least half the time wondering why a correctly implemented feature wont work... until i found the correct browser workaround. And not all of the browser bugs are bugs, some are backward compatibility workarounds in the browsers that i now need to workaround in the server. Insert facepalm here

    So, yes, i did learn quite a lot. And on the side, i even got a working product out of it ;-)

    Don't use '#ff0000':
    use Acme::AutoColor; my $redcolor = RED();
    All colors subject to change without notice.