Recent web survey report shows us a surprising fact about PHP programmers deciding to leave PHP for Ruby on Rails.
Of course this survey isn’t necessarily the reason to claim the quality of the programming language it represents. I even convince that the numbers merely show us how programmers deal with the language they choosed.
There are many reasons why PHP programmer decides to leave for another language, but i think the most significant reason is because of many undisciplined PHP Programmers out there. They might not realized this, but they have made PHP looks really bad.
One of the thing they did so often is lack of attention in security aspect. Ilia showed us how many PHP codes out there are so fragile and open, waiting to be exploited. Just try this out by Google code search. Even the old problems like SQL injection still exists out there, thanks to those undisciplined PHP programmers.
The other thing undisciplined programmer often do is they still think they live in 90’s, where everything must be build from scratch, where OOP was not the option, where framework was not invented yet. They’re the ones who make coding in PHP such a mess and chaostic.
There are some reasons I belive why PHP was made so simple, it leaves us free to express ourself in the most unpredictable yet clever ways. Also it makes newbies so easy to learn it.
So using PHP in old fashion way will only make PHP looks bad, and many more people will leave it. That’s why i’m so excited with many PHP frameworks today, it gives us more power to build better and more secure web application.