Thread: Anyone know PHP
View Single Post
Old 03-06-2003, 09:55 AM   #3
Undertoad
Radical Centrist
 
Join Date: Jan 2001
Location: Cottage of Prussia
Posts: 31,423
Also, personally speaking I avoid such shortcuts. C programmers love to write weird conditions that take hours to figure out. That's not so critical when performance is not the major factor. If I have a php script that goes to page two, I write something really bloody obvious like

if ($page2 == "yes")
// --- Page TWO section ----------------

...because even though it takes more effort now, it means I'll be able to figure out what I did a year from now, when I've forgotten the whole project and the client wants me to change the whole thing.
Undertoad is offline   Reply With Quote