On Thu, Jan 17, 2002 at 05:24:42PM +0800, Sacha Chua wrote: > I want to learn so much more about what I do. I'd like to talk with > people who really try to do the right thing. For example, in web apps, > what are some patterns people find useful? I've gotten the hang of > having nice, neat include files. I have a general pattern I use for > sites with logins, access levels, whatever. But I want to know more > about these things. How do people develop faster and better?
Actually, we just thought of this right now while attempting to debug a really ugly CGI script that we are customizing for our internal use. At its heart CGI programming really is functional programming, and one neat way I think it can be done will be to think of every HTTP GET or POST as a call to a function that will return HTML text based on the decoded URL or postdata. If you had some good object-oriented language with the ability to manipulate XML using DOM it might be very easy to implement such a framework. Let the program make an initial call to register the functions for each named action. Maybe I'll write a Perl module that provides this cleaner method of thinking about CGI... -- Rafael R. Sevilla <[EMAIL PROTECTED]> +63(2) 8177746 ext. 8311 Programmer, Inter.Net Philippines +63(917) 4458925 http://dido.ph.inter.net/ OpenPGP Key ID: 0x5CDA17D8 Heute die Welt und Morgen das Sonnensystem! _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
