|
Posted by www.douglassdavis.com on 09/18/05 05:08
raf wrote:
>
> First, your descriptive naming conventions don't help in understanding
> the intent of your code.
the only intent was to demonstrate a language concept. :)
> Second, what do you mean "always remain the same?" Do you mean that
> every single instance of MyClass4 shares the exact same single instance
> of each of those arrays?
>
> If so, might it be worth considering factoring out the array and using a
> Singleton pattern for whatever they represent?
sure.. that's an option. Since it's just a bunch of data that doesn't
change, I was wondering if i could use member variables to represent
them, rather than classes... But, good suggestion though.
> If not, rethink your design. And your naming conventions.'
That was only an example :) The real code is too long.
> > Also, there are no static initializer blocks like java.
>
> Makes me wonder why people flock to use PHP then ;-)
Because we actually like programming in PHP :)
Navigation:
[Reply to this message]
|