You are here: Re: Object-Oriented Design in PHP « All PHP « IT news, forums, messages
Re: Object-Oriented Design in PHP

Posted by rush on 10/25/05 13:21

"NC" <nc@iname.com> wrote in message
news:1130175442.823069.267960@z14g2000cwz.googlegroups.com...
> rush wrote:
> > "db_guy" <karl7712@yahoo.com> wrote in message
> > news:1129909115.120095.113810@g49g2000cwa.googlegroups.com...
> > If you have some other forms on that site, you could have AbstractForm
> > class describing general form handling flow, and sublcass each form on
> > the site from it.
>
> Or you could have a single function that would do absolutely the same
> thing with less overhead...

Maintaining that fuinction will get more and more hairy, as you increase
number of forms, with each one of them having some specifics. In OO one
would usually isolate those points in methods, ands overide them in the
sublcass. In procedural approach one would start writing complex switch
statements, or in php perhaps conditionally incude different files with
different definitonms of help functions. Or quite often programmer would
just give up after some time, and do that dreaded copy-paste-modify-slightly
thing.

rush
--
http://www.templatetamer.com/
http://www.folderscavenger.com/

 

Navigation:

[Reply to this 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

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