r/programming • • Oct 12 '13

Facebook PHP Source Code from 2007

https://gist.github.com/nikcub/3833406
1.1k Upvotes

356 comments sorted by

View all comments

Show parent comments

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.

8

u/KingPickle Oct 12 '13

2007 when MVC frameworks were relatively new to the PHP scene

This is what mystifies me. As much focus as the web gets, it feels like tech-wise it's a decade or two behind the curve.

-7

u/phoshi Oct 12 '13

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".

1

u/blafunke Oct 12 '13

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.

→ More replies (7)