Reply to Re: bug or feature? (OO design/languages)

Your name:

Reply:


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 :)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация