Re: [PHP] Constructor usage

2010-04-04 Thread Adam Richardson
On Sun, Apr 4, 2010 at 6:36 PM, Larry Garfield la...@garfieldtech.comwrote: Hi folks. Somewhat philosophical question here. I have heard, although not confirmed, that the trend in the Java world in the past several years has been away from constructors. That is, rather than this: class

Re: [PHP] Constructor usage

2010-04-04 Thread Paul M Foster
On Sun, Apr 04, 2010 at 05:36:23PM -0500, Larry Garfield wrote: Hi folks. Somewhat philosophical question here. I have heard, although not confirmed, that the trend in the Java world in the past several years has been away from constructors. That is, rather than this: class Foo {

Re: [PHP] Constructor usage

2010-04-04 Thread Larry Garfield
On Sunday 04 April 2010 09:21:28 pm Paul M Foster wrote: So, I'll throw the question out. Who uses example 1 above vs. example 2 when writing dependency-injection-based OOP? Why? What trade-offs have you encountered, and was it worth it? One problem I have with parameterless