Re: functions, opinion...

From: Date: Tue, 17 Jun 2003 04:05:56 +0000
Subject: Re: functions, opinion...
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-151776@lists.php.net to get a copy of this message
"Dvdmandt" <dvdmandt@telia.com> wrote in message news:20030617021235.4911.qmail@pb1.pair.com... > Or you could just temporarily enable ob... That's what I do when I have a > function that needs to return lots of HTML containing many ' and "... I know > it's possible to use \ as well, but ob is somewhat easier then... You're missing the point. Output buffering can be useful, but it is an entirely separate issue from the functional programming style these two are endorsing (and with which I wholeheartedly agree). Too many people learned programming in the BASIC school, writing 'do this, then add this, then append that and the other' programs and ending up with five-page subroutines. A bit of experience with LISP or ML or FORTH can be a wonderful thing; you start to see how to simplify your problems, breaking them into smaller and smaller pieces until all the answers are obvious and there are no places left for bugs to hide, passing the results back to build your final solution and keeping the pieces generic and reuseable. -- Hugh Bothwell hugh_bothwell@hotmail.com Kingston ON Canada v3.1 GCS/E/AT d- s+: a- C+++ L++>+++$ P+ E- W+++$ N++ K? w++ M PS+ PE++ Y+ PGP+ t-- 5++ !X R+ tv b++++ DI+++ D-(++) G+ e(++) h-- r- y+

« previous php.general (#151776) next »