代码改变世界

Using C for CGI Programming(5)

2010-09-18 12:20  shuisheng  阅读(200)  评论(0)    收藏  举报
 in
You can speed up complex Web tasks while retaining the simplicity of CGI. With many useful libraries available, the jump from a scripting language to C isn't as big as you might think.
Conclusions

With the right tools and a little experience, developing CGI applications with C is nomore difficult than it is when using Perl or PHP. Now that I have the experience andthe tools, C is my preferred language for CGI applications.

C excels when the application requires more advanced processing andlong-term stability. It is not especially susceptible to failure whenserver changes are beyond your control, unlike PHP. Short ofremoving a shared library, such as libc or libmysqlclient, the Cversion of our application is hard to break. The speed of executionfor C programs makes it a clear choice when the application requiresmore complex data processing.

Resources for this article: /article/8058.

Clay Dowling is the president of Lazarus Internet Development(www.lazarusid.com). In addition to programming, he enjoys brewingbeer and wine. He can be reached by e-mail atclay@lazarusid.com.