Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28463 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53937 invoked by uid 1010); 19 Mar 2007 22:13:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 53922 invoked from network); 19 Mar 2007 22:13:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Mar 2007 22:13:15 -0000 Authentication-Results: pb1.pair.com header.from=thefirstofall@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=thefirstofall@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.134.191 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: thefirstofall@gmail.com X-Host-Fingerprint: 209.85.134.191 mu-out-0910.google.com Received: from [209.85.134.191] ([209.85.134.191:28738] helo=mu-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/D6-01604-9FA0FF54 for ; Mon, 19 Mar 2007 17:13:15 -0500 Received: by mu-out-0910.google.com with SMTP id i10so2211478mue for ; Mon, 19 Mar 2007 15:13:11 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=eAFRVeJDy2hpy2UJRDfg0FcM/CrEa7KNAIFIrsPKPrdIjGTuzwt7iol8DazAzeXdFskxoPniTA4rKNjJV4OaigE1CtQXdG3RGiImewwJY9BoJfu7Mv2S7fGvVap/1hclOauduBILcP+tv3cqyX1lIQp7XI1i7U8pCTU8BI1STqs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=BKUj/PHssLcFrzTMN31GrGBOQN4TLJ/PPs860DbKu3hrZdFBHjOF9GCJgo/wVKA3BbK3Ih6eTXdxXLm02izBa2X7BmLCNpRM9O6THbVqlP3ebAyHaaOt48KWSeiJDVhaplSgOmknkaqFcxmZx7ui3XeX7spauPUn+JJEuzmXpW0= Received: by 10.82.152.16 with SMTP id z16mr11055374bud.1174342391117; Mon, 19 Mar 2007 15:13:11 -0700 (PDT) Received: from ?192.168.128.205? ( [62.112.219.44]) by mx.google.com with ESMTP id w7sm19870691mue.2007.03.19.15.13.09; Mon, 19 Mar 2007 15:13:10 -0700 (PDT) To: ceo@l-i-e.com Cc: internals@lists.php.net In-Reply-To: <41721.216.230.84.67.1174341117.squirrel@www.l-i-e.com> References: <1174134488.8667.33.camel@lena> <45FC74A5.6080307@pooteeweet.org> <1174231834.12274.110.camel@lena> <45FEBD70.2090000@zend.com> <1174330743.9134.2.camel@lena> <41721.216.230.84.67.1174341117.squirrel@www.l-i-e.com> Content-Type: text/plain; charset=utf-8 Date: Mon, 19 Mar 2007 23:13:07 +0100 Message-ID: <1174342387.14657.86.camel@lena> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] google SoC - dbobj From: thefirstofall@gmail.com (=?ISO-8859-1?Q?Bank=F3_=C1d=E1m?=) 2007. 03. 19, hétfő keltezéssel 16.51-kor Richard Lynch ezt írta: > I don't think you'd want the RAM/performance hit of that, even in C... > [shrug] > > OTOH, I don't think I'd even want to use an ORM, so feel free to > ignore me completely. :-) > Hi! I think a code is more manageable if it's more structured. This additional structure however means "unoptimal" code, that will run slower, and consume more memory. Some balance point should be found, where the project is still manageable, but the resource overhead is minimal. Managing C code with limited structure (for bigger projects than hello word) is hell. This is why structured programming and then the OOP was invented. Having a separate object for every data value is a bit idealistic (it would be best, if it wouldn't have the object construction / destruction overhead. But it has. I choose to implement this "idealistic" approach when I started to see switch-case blocks in my code, that did not fit in my screen (about 50 lines). Adam