Hey all.

I'm looking for guidance from any PHP Gurus, or gurus in the making re:
whether to use a function based design or a switch statement based design
for a multi-sport data driven sport report.

Alright, here's the deal:

Last year I developed a data driven hockey report for a friend -- the site
has done rather well.  Based on the success of his site, I thought I'd
launch a spec sport report and see what happens (that's where I'm at now).

Over the past few weeks I've been converting the single sport hockey report
over to a multi-sport interface.  In doing so, I realized that many of the
hard coded templates I developed in Cold Fusion could be converted to PHP
functions; thus saving time for common sport development (i.e. baseball and
softball have the same stats, so no need to replicate hard coded templates,
just call function(s) to do the work).

Due to my relative beginner developer status, I'm coming from a position of
ignorance -- I don't  know for sure what the best way to proceed actually
is.  The functions I've created work, but I can't shake the notion that
there is a better way to proceed -- and I'm sure if you've got any
programming experience under your belt, you've already got a few ideas in
mind.

The question:  if you were to undertake this project, would you develop
functions (not objects -- I'm not there yet), to create templates for
submitting game results, or would you break it down into switch statements
with include files, or none of the above?

Any advice greatly appreciated,

Give a holler if you need more details............

--Noah



--




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

Reply via email to