Re: All-in-one PHP Classes
| From: | Chris | Date: | Thu, 08 Feb 2007 00:27:13 +0000 |
| Subject: | Re: All-in-one PHP Classes | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248522@lists.php.net to get a copy of this message | ||
Roman Neuhauser wrote:
# dmagick@gmail.com / 2007-02-07 09:59:15 +1100:Anything based on PEAR. I was going to point to http://pear.php.net/package/MDB2/docs/2.3.0/__filesource/fsource_MDB2__MDB2-2.3.0MDB2.php.html which has 4,000 lines of code in one file, but then I realised it has multiple classes in the same file (which is usually a no-no as well). -- Postgresql & php tutorials http://www.designmagick.com/Roman Neuhauser wrote:Could you give me an example?# user@internet46.fr / 2007-02-06 12:47:47 +0100:Pfft. Depends on the code. A developer api is going to have long methods / functions, simply because of error checking.Have been reading posts daily for two months now on the list, and am very pleased at how informative these can be. I have noticed, many examples where one is pointed to using classes downloadable on the internet. This is when i realized how often these classes that do "everything" are very BIG.Big classes and long methods are signs of bad code, no matter if it's downloadable for free or costs money.