|
-
The G5 SP
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.
-
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 ...
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|