Linked by Will Senn on Thu 22nd Apr 2004 06:30 UTC
General Development This article is intended to give you a practical recipe for creating a simple Web Control and extending Visual Studio with support for the control. The control itself is a basic Country Code drop down list such as you would find on many profile entry pages.
Permalink for comment
To read all comments associated with this story, please click here.
PHP????
by Anonymous on Thu 22nd Apr 2004 17:04 UTC

Wow. I can't believe people are seriously comparing PHP to this. I'll admit that I was a PHP programmer back in high school. Then I taught myself J2EE and enterprise-scale web application design patterns. Now PHP seems a horrid kludge useful only for creating simple personal web pages.

I haven't done any ASP.NET programming, but industry seems to hold it in the same regard as J2EE. This custom control idea seems analogous to custom tags in JSP. There is nothing like it in PHP. Suppose you want to validate input coming from your custom control. You can probably (again, I don't know ASP.NET) attach validation code to the control. Then your other developers can use that control anywhere on the website just by dragging and dropping it in. In PHP, you would have to encapsulate rendering the control and validating the control in separate functions and call those functions directly on the web page, placing the validation call at the top and the rendering somewhere in the body, and you would have to remember to copy and paste both of those every time. MVC is nigh near impossible in PHP.

As for CGI having less overhead than ASP.NET, you've got to be kidding. It has a smaller fixed cost, sure, but the per-request hit is humongous as you have to fork another process every time. You will not find enterprise web development jobs using PHP or CGI because of poor scalability both in terms of development and in terms of handling requests. See http://www.onjava.com/pub/a/onjava/2003/06/04/nukes.html for a case study.