Posted Mar 4, 2012 1:57 UTC (Sun) by tialaramex (subscriber, #21167)
In reply to: PHP 5.4.0 released by ggiunta
Parent article: PHP 5.4.0 released
Whatever it is, it's not for engineers. Engineers care about maintenance, and PHP isn't maintainable.
PHP encourages spaghetti, encourages bad practices like using string concatenation instead of parameter binding, even encourages the "copy paste" approach to code-reuse. And so on through a litany of maintenance-hostile behaviours.
It has taken long painful years to beat the worst security mis-features out of PHP. It may be decades before the knock-on effects reach the many PHP "applications" (if piles of accumulated PHP may be so-called) that have grown up while such mis-features existed.
Posted Mar 4, 2012 12:59 UTC (Sun) by DG (subscriber, #16978)
[Link]
PHP is maintainable - if you set about it in the right way using good software engineering practices - code style guidelines, unit tests, reviews, CI etc.
I'm not sure why you think PHP encourages copy+paste coding more than any other language. If it does, it's probably because of it's low barrier to entry which results in some less skilled/proficient people writing it.
PHP 5.4.0 released
Posted Mar 4, 2012 15:41 UTC (Sun) by anselm (subscriber, #2796)
[Link]
PHP is maintainable - if you set about it in the right way using good software engineering practices - code style guidelines, unit tests, reviews, CI etc.
Anything is maintainable if you're investing enough care and effort. People are maintaining large assembly language programs, after all. The real question is whether maintaining something in PHP or assembly language is worth the trouble when there are lots of other approaches that let you achieve the same level of maintainability with less effort (while probably also improving all sorts of other quality metrics to boot). In the case of assembly language, most people have figured out for themselves what they prefer, which is why there are much fewer large assembly language programs around than there used to be.
Having said that, PHP is great. It is the best thing since the invention of sliced bread. Everybody should be using PHP all the time. It would make us Django people look so much more competent and efficient by comparison.
PHP 5.4.0 released
Posted Mar 4, 2012 17:45 UTC (Sun) by man_ls (subscriber, #15091)
[Link]
IME proper engineering is not harder to do in PHP than in other languages; and some things like, you know, serving web pages is actually easier. I have not worked with Python or Ruby frameworks though; only with Java frameworks which grow more byzantine by the year. But people are even suggesting Scala here, so I guess their tolerance for the bizarre must be quite high.