Earlier quoted context omitted.
It is a myth. High load has nothing to do with it. However if you configure apache wrongly, it will serve .php files as text. Only connection to load is if you have one broken server among N proper ones, a number of times that the broken one is hit depends on load - I.e. on low load, it may be configured so that it is never hit at all. I guess the story about apache serving php source under high load came from the id…
this was a real issue, here is the bug: https://bugs.php.net/bug.php?id=26810 there were many related bugs as well. it didn't get fixed for a while, and when it was fixed it was over a number of revisions and wasn't tagged.
Facebook PHP Source Code from August 2007
151–154 of 154 posts
Re: Facebook PHP Source Code from August 2007
#152Re: Facebook PHP Source Code from August 2007
#153This is quite neat compared to the average shitfest people leave inside wordpress templates. I had to unpick a whole 200 page intranet written with wordpress and buddypress (which stinks) recently and rewrite it as a non-wordpress site as it's hit the inevitable hack brick wall. It's now an asp.net mvc app on Azure. There's hardly any code in it now and a the page response times are down at 50ms rather than 1500ms! O…
An entire intranet functionality with one SQL query per page. Right, okay...
Re: Facebook PHP Source Code from August 2007
#154Earlier quoted context omitted.
It's kind of funny to see two reactions here: * Reaction A: code is ugly, what a bunch of jerks! * Reaction B strikes me a bit as hero worship. Since we already know the outcomes, already some consider them geniuses; we must conclude every decision they made was a good one, and there is no room for criticism. Perhaps neither are great, but I think reaction B especially is a little dangerous. One must acknowledge that…
A false dichotomy if ever there was one. Anyone who doesn't think the code is ugly must just be blinded by hero worship? How about the possibility that a1a is one of the people who just automatically equates "large volume of code" with "spaghetti"? In my experience there is a fair number of HN users (and devs in general) with this knee-jerk perspective. In my very humble opinion any reasonable person who takes a few…
Like I posted - just below - a day before your post: "My post was not meant to trash the code, but rather to point out that this code shows us that the primary objective shouldn't necessarily be writing the perfect code."