OO v. Functions Was: Re: [PHP] PHP Form (aka:Re: [PHP] Can any one spot the Parse error Here)

From: Date: Mon, 02 Jul 2001 15:30:58 +0000
Subject: OO v. Functions Was: Re: [PHP] PHP Form (aka:Re: [PHP] Can any one spot the Parse error Here)
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-55853@lists.php.net to get a copy of this message
>> Ive coded in both PHP and ASP and in both OO and function oriented. Ultimately, i find functionally oriented PHP to be the best ... what do other people think? Having learnt how to program using Basic when I was 8, I had to unlearn a lot of things as I moved from Basic to Pascal (what? I can't just Goto wherever I want to?) then to C (a point-what?) and then a self-imposed exile from programming only to rediscover it with Actionscripting (Flash) and Lingo (Director) before trying out Python and finally loving PHP! Why all this? Well it kinda charts my move from unplanned-write-as-you top-down programming to function-based programming to object-oriented (which is something I thought I had missed the boat on during the time I stopped programming). Although it took a while for me to get my head around it my favorite has to be Object Oriented. It's shocking to see my own transformation from someone who would rather write hours of code then adapt someone else's code to someone who'd rather scour the net looking for a ready-made class that can then be extended. Although PHP is not a real object oriented language, I still prefer using the oo logic whenever possible. Although I guess there are times when you can't use classes in PHP (has anyone been able to create a custom session handler *class*, for example?.. how would you set up the session_set_save_handler that takes strings to point to the various handler functions from within a class?) I try to whenever I can. I think the words I love most lately are abstract, modular, and portable and though it usually takes lots more planning and perhaps a little bit more time spent conding at first for those adjectives to apply to your code, I believe it's definitely worth it! OK, ok, I won't write to the list again first thing after I get up... I sure can ramble! ______________________________ (aral@kismia.com) New Media Producer, Kismia, Inc. (aral@american.edu) Adj. Prof., American University ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

« previous php.general (#55853) next »