everything as classes

From: Date: Thu, 03 Apr 2008 16:33:25 +0000
Subject: everything as classes
Groups: php.general 
Request: Send a blank email to php-general+get-272498@lists.php.net to get a copy of this message
Along the lines of a previous post "How to get a code review", I am curious if it is overkill to create everything in classes. For example, a movie website where there is a class for the movie datatype, class for getting/adding/deleting/updating movie's data to the database, and class for displaying the data. (Of course there are classes for general functionality like sql database connection etc.) For listing movies alone there are at least 4 different inheritance classes for chronological, alphabetic, category and keyword. Anyway this is how I coded something similar but for Flash/Actionscript site but I'm not sure about a PHP site. I appreciate your comments. - robert

« previous php.general (#272498) next »