A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: PHP Output

  1. #1
    The G5 SP N_R_D's Avatar
    Join Date
    Apr 2004
    Posts
    1,118

    PHP Output

    Ok so which do you guys think, on a professional level is better to have.

    1. A Clean PHP code that is easy to read, and easy to modify by anyone who knows what they are looking at.

    2. A clean HTML source Output from the echos prints and such.... but at the sacrifice of the PHP code. making it out of line and a little more difficult to read.

  2. #2
    Stupid Little Dreamer
    Join Date
    Aug 2000
    Location
    Toronto
    Posts
    583
    I think it's definitely 1) -- clean PHP code.

    As long as your HTML's validity isn't affected, having clean HTML source output is more likely to benefit those outside your company than inside. People trying to learn from your code, for example. While it's true that, while debugging, one of your coders might wish to have nice clean source to look at, it will be more important to have clean PHP to turn to after the symptom of the problem has been understood.

    Not to say that you shouldn't try to do both -- but if the nature of what you're doing forces you to choose between them, it seems to me your company will get more work done more efficiently with clear PHP and muddy HTML than the other way around.

    ... Or at least, that's my opinion.
    If it weren't for the last minute, nothing would get done ...

  3. #3
    I Have A Madness
    Join Date
    Jun 2006
    Location
    Next To My PC
    Posts
    4
    Go With No.1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center