On 29 Sep 2003 19:22:54 -0000
Chris <[EMAIL PROTECTED]> wrote:

> I am working on a fairly large scale (for myself anyway) project using PHP 
> and MySQL. I am victim of teaching myself to program, not separating 
> presentation from my code-- all the things that lead to masses of spaghetti 
> code so atrocious even I can't figure out what I was doing an hour ago.
> 
> I'm not looking for an IDE or code generator so much as some practical 
> advice for organization and framework when developing a larger app. I know 
> of PHP Fusebox, having programmed with Cold Fusion fusebox for a while, but 
> it seems like that might be too much. Maybe I just need a sensical, 
> practical approach to application layout. What do you all do? How can I 
> learn to be a better PHP programmer in this regard?

So far I haven't heard of any school teaching php or a particularly recommended 
methodology so we are all more or less in the same boat. I used the book by Luke
Wellington and Laura Thomson which aside from being a well written book uses the
same programming approach for all examples. That is: keep all html in one file and
access it as functions, split php code in logical components (build dynamic
content, database access, etc.). Not very different from when I was using cgis.
I looked at Smarty but having to learn almost a new language turned me off.
So far I tried to stay away from OO which IMHO can add unnecessary complexity if
used where functions would do just fine.
If I were to advice someone on the most important thing to look for when choosing
a method of programming that would be: don't trust anybody, don't use something
just because a lot of people use it. Evaluate and judge for yourself.

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


____
Regards, Andu Novac

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

Reply via email to