Re: What should I name my base class?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Brent Clements wrote:
I know this probably doesn't matter, but what is the pretty standard naming
convention for base class names?

Should I name it "base.class", "main.class", or the name of my application,
"application.class"?

What does everyone else use?

Avoid base classes like the plague. They only limit future flexibility. Use inheritance like salt - as an enhancement for flavoring, otherwise you might develop high blood pressure ;). Better is to use delegation, factory or singleton as a way to access needed features, because then you can easily plug in new base functionality.


Greg

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux