Live data from Hacker News

Facebook PHP Source Code from August 2007

gist.github.com

11–20 of 99 posts

Re: Facebook PHP Source Code from August 2007

#11
post #3

From index.php, an if statement for one particular user // Merman's Admin profile always links to the Merman's home if (user_has_obj_attached($user)) { redirect('mhome.php', 'www'); }

"Merman" was an internal project codename, not an individual user. I think it was a very early version of the feature that eventually became "Pages".

Re: Facebook PHP Source Code from August 2007

#15

Amazing that they initially wrote this code and now to join FB you need to answer questions based on backtracking and dynamic programming. :) I wonder if they could do the questions themselves back then.

Dynamic programming questions are explicitly not used in current Facebook interviews.

From time to time, Facebook and other companies study the effectiveness of their hiring process by comparing employee performance and interview performance. I believe dynamic programming questions were removed because there was not a strong link between success in this question and future performance.

Re: Facebook PHP Source Code from August 2007

#16

One way to look at this is to say "Hah, how shameful." The other way to look at this is to say "Hah, clearly business success isn't a function of code quality"

> Hah, clearly business success isn't a function of code quality

Mind you, early Facebook wasn’t exactly a “tech business”—the code wasn’t making them any money, such that having a bug in the code would make them less money.

Really, Facebook only became a “tech business” once they got into 1. Messaging, and 2. Advertising. Then they had SLAs, and breaking those SLAs meant losing users/customers; and their ability to deliver on those SLAs became directly related to the quality of their code.

Re: Facebook PHP Source Code from August 2007

#18

Amazing that they initially wrote this code and now to join FB you need to answer questions based on backtracking and dynamic programming. :) I wonder if they could do the questions themselves back then.

What do those things have to do with each other?

Code can't use algorithms because it's written in PHP? I'm not following.

Re: Facebook PHP Source Code from August 2007

#19
I know it's just two of the files, but taking into account the rest of the pages for the FB app in 2007, it does not seem like a lot of code. One or two people could have written and maintained a project that size. What were all the new hires doing from 2005-2007?
Post reply on HN