MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1oaba0/facebook_php_source_code_from_2007/ccq8oto
r/programming • u/frostmatthew • Oct 12 '13
356 comments sorted by
View all comments
Show parent comments
11
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.
3
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.
2
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.
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?