Re: Is extensive use of classes too much contra-productive?

From: Date: Thu, 13 Nov 2003 10:11:24 +0000
Subject: Re: Is extensive use of classes too much contra-productive?
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-23578@lists.php.net to get a copy of this message
On Thu Nov 13, 2003 at 12:1048AM +0100, Stefan Neufeind wrote: > didn't intend to spit all those small helper-classes off into > separate files. It was just an idea to keep the API a bit more clean. > Having > > $graph->axes['y']->setFont(...) > > or similar seems a bit more clean to me than using > > $graph->setAxesYFont(...) > > where you have multiple similar functions with each confusing names. > Which solution would you prefer? The really fast solution? Is that > API okay also in your eyes? I would opt for the first solution in your specific case, where performance does not play the most important role. > How much do you expect performance to > drop? From 0.3 to 0.4 seconds? Or even less extreme? I don't have any numbers on that. Why don't you measure them yourself? -- - Martin Martin Jansen http://martinjansen.com/

« previous php.pear.dev (#23578) next »