Jason wrote: > What you said somewhat made since....... > I do not understand classes how to use them, what they do, etc... > > --- In php-objects@yahoogroups.com, "Tech @ LDS" <tech@l...> wrote: > >>Eh...I know sometimes files can get really big, but this problem > > just > >>screams to me that you might want to consider offloading whatever > > is > >>going on to a class, that is, unless you really intend to do > > genetic > >>sampling at login... >> >>:o)) > > > > > > PHP Data object relational mapping generator - http://www.meta-language.net/ > Yahoo! Groups Links > > > > > > > > I know what you mean: I had FORCE myself to take a look, using the PHP5 launch as an excuse to make the time. They make a LOT of sense as a way to tie related functions together so you can set variables and functions once and reuse them at will simply by referencing the class; at the very least, it means you don't have to worry AS much about scope. I separate code into these levels, and that's why classes make more sense than creating massive interwoven functions: --presentation [usually just index.php with basic CSS] --logic controllers [lot's of switch statements; these files can get huge] --classes [these are workhorse files, but functions are "chunked/normalized" as much as possible] --template variable files [these pull on MySQL and classes to set content in the template] --templates [ 100% HTML plus template markers] I don't use Smarty or anything more complex than a templating engine grabbed from a book. If it takes me more than 30 minutes to understand someone else's code, I tend to write my own or strip it until I get only what I need. Maybe down the road I will need something more complex, but for now it serves log-in, input and "views" just fine. I'm not a classically trained programmer, and it's making my thinking much clearer, not to mention making code easier to comment and re-use. -- -------LDS--------LDS--------LDS------- Tech@LitigationDataServices.com Litigation Data Services, PLC -------LDS--------LDS--------LDS------- ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM --------------------------------------------------------------------~-> PHP Data object relational mapping generator - http://www.meta-language.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/