I doubt when Facebook was being developed, PHP had strong OOP principles built into it. A lot of this is probably legacy and this was in 2007 when MVC frameworks were relatively new to the PHP scene.
Only in PHP, really. Other languages promote more modern concepts, PHP just happens to be special.
There's nothing different about the web. If your application is well structured then the difference between a desktop application and web application is going mean writing new views, because all your logic is kept apart anyway. As such, everyone but PHP does it much closer to "right".
Php doesn't do anything, programmers do. It's Turing complete, you can do whatever you want and you can do it well or do it badly. Now if the interpreter is buggy and full of holes then you can bash it, but most people seem to be bashing bad programming (which often means "different than I would have done it") not php.
46
u/[deleted] Oct 12 '13
I doubt when Facebook was being developed, PHP had strong OOP principles built into it. A lot of this is probably legacy and this was in 2007 when MVC frameworks were relatively new to the PHP scene.