Live data from Hacker News

Facebook PHP Source Code from August 2007

gist.github.com

41–50 of 99 posts

Re: Facebook PHP Source Code from August 2007

#42
post #12

> Worth preserving as part of Internet history. Can't Facebook just issue a takedown request and have these files removed?

I'm not even sure they could do that. What would be the difference between that and some megacorp issuing a takedown-request for an internal document leaked by the press?

Re: Facebook PHP Source Code from August 2007

#43
post #38
post #35

Earlier quoted context omitted.

Your definition of theft is wrong. Legally, this was not stolen.

Are you a lawyer?

You don't have to be a lawyer to understand that subtraction and multiplication are two completely different operations.

Re: Facebook PHP Source Code from August 2007

#44

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.

The trick in any business is to get it to a point where you can afford to hire people smarter than you are.

Re: Facebook PHP Source Code from August 2007

#45

Can someone explain to a newbie why this code is so bad? Reading through it it seemed to generally make sense and not be too complicated.

It's decent as far as 2000s era PHP goes. If you want to poke your eyes out, look at the source of some of the PHP web forum software out there.

The leaked code ignores pretty much all design patterns and software architecture norms. But not having to deal with that, and being able to cobble something together in a hurry, was the appeal of PHP. You can always rewrite later. Nowadays Facebook's landing page is served by highly tuned binaries compiled from C++. If they decided in 2007 to start out with that, we probably would not know who Zuckerberg is.

Re: Facebook PHP Source Code from August 2007

#46
post #38

Earlier quoted context omitted.

Are you a lawyer?

You don't have to be a lawyer to understand that subtraction and multiplication are two completely different operations.

Are you sure?

https://legalbeagle.com/8608294-difference-between-larceny-t...

> In many states, "theft" is an umbrella term that includes all different kinds of criminal taking. This is the case in New York. Under the New York Codes, theft can be any type of taking, like identity theft, theft of intellectual property, theft of services and theft of personal property

Re: Facebook PHP Source Code from August 2007

#47
post #41
post #38

Earlier quoted context omitted.

Are you a lawyer?

are you?

Does it matter? How is a random person on the internet sufficiently qualified to define theft in a complex domain like digital copyright and intellectual property? You don't have to be a lawyer to be skeptical of what someone says online.

Re: Facebook PHP Source Code from August 2007

#48

> is line 89 of search.php valid?? "$user 0 && ..." ? aren't we missing an comparison operator? Good job. And perhaps that's the culprit. Everybody assumed it was a plain syntax error, but I don't think it's possible. Rather, it seems me that: if ($user 0 && ...

So there's an unknown amount of Spaghetti Code still missing from this mess?

Re: Facebook PHP Source Code from August 2007

#49
post #38

Earlier quoted context omitted.

Are you a lawyer?

You don't have to be a lawyer to understand that subtraction and multiplication are two completely different operations.

If you're a mathematician and not a lawyer you might think those are different operations. But lawyers, judges, and juries have a unique capacity to argue that you're guilty of subtraction even if you only multiplied.

To a lawyer, bits have color: https://ansuz.sooke.bc.ca/entry/23.

Post reply on HN