News for hackers. Stuff that matters.
Re:I Like PHP by geon on Wednesday August 10, 2011 @05:37PM (#2870324)
> That is NOT a result of the language.

Considering PHP is more-or-less designed to be a templating language, I'd say it is. Partly.

On the other hand, PHP is a pretty good templating language. People should just learn to separate business logic from presentation logic.

Re:I Like PHP by btilly on Wednesday August 10, 2011 @06:12PM (#2870438)
It is possible to write clean, well-factored code in PHP. Just as it is in other languages.

That wasn't how the language was originally intended to be written, and that is not how hordes of people use it. But it can be done. Really.

Re:I Like PHP by bricestacey on Wednesday August 10, 2011 @11:01PM (#2871155)
PHP is designed to be embedded in HTML. That is why you must use the enclosing <?php ?> tags in all PHP scripts. Even when you run standalone php scripts from the the command line, you're literally embedding PHP in STDOUT.

This is very different from other languages such as ruby where templating uses the ERB module, which is a subset of the ruby language.