Re: HTML & C

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Victor Odhner
Date:  
To: plug-discuss
Subject: Re: HTML & C
Michael Havens wrote:
> Well, I'll create my webpage and then learn C.
> I know that webpages written in C must load quickly but
> my page is going to be so simple that it won't matter.


If it's *not* simple, then it's too expensive to build
in C, so either way Perl wins hands down. (I speak from
10+ years of C followed by 10+ years of Perl CGI work.)
Right now I'm working on a few perl programs, one's at
7000 lines, the other's a CGI at 4500 lines of my code
supported by a few thousand lines of library code.
Can you imagine how much C would be needed to do the
same amount of work? Maybe 2 or 3 times as much.

Where a CGI in C can be justified is very simple logic
and a need for speed, plus very small size. (I did one
a couple of years ago to run on a micro-controller so
tiny that it couldn't even boot Linux, so that code
never made it onto SourceForge. Cheez, that was my
last bit of C code, a little over two years ago now.)
I love coding in C, but something like Perl, PHP or
Java makes a lot more sense for most applications.

C or C++ is where you go when you need really flat-out
CPU performance, such as an operating system, a
compiler or a graphic gaming system. In anything else
you are bound by disk or network speeds and your CPU
is loafing, so it's hard to justify all the
craftmanship that C coding requires.

Vic


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss