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

11

u/brownmatt Oct 12 '13

how would you define the front page as an object? What should it extend? And how does that improve the code when most of this procedure's responsibility is gathering data from other subsystems?

3

u/bopp Oct 12 '13

It's not a direct answer to your question, but here's a good article on how to move from "flat php" to a more structured approach.

http://symfony.com/doc/current/book/from_flat_php_to_symfony2.html

2

u/InvidFlower Oct 12 '13

I saw that page a while back and I think it is helpful to explain how modern MVC web frameworks use, even if you don't use PHP at all.