3 ms·
Another fun piece of PHP history: The old leaked source code for Facebook's index.php and search.php circa 2007: https://gist.github.com/nikcub/3833406 https://
by tyingq 5y ago
Another fun piece of PHP history: The old leaked source code for Facebook's index.php and search.php circa 2007: https://gist.github.com/nikcub/3833406 https://gist.github.com/nikcub/3833406
- gscott 5y agoThat was probably the last time the Facebook code was ever sane and readable.
- rhacker 5y ago// Holy shit, is this the cleanest fucking frontend file you've ever seen?! ubersearch($_GET, $embedded = false, $template = true); lol
- 8fGTBjZxBcHq 5y agoA good bit of my work is in php codebases from that era and uh... yeah kinda. Generally at that time (and for a few years after) you still see a huge influence from C programming constraints in php. Lot of extremely terse abbreviated variables and explicit looping. And for some fucking reason the pervasive believe that variable names need to be at most either 3 or 6 characters long. (Yes I know the reason it's still bad) So yeah painful as it is to admit that is well above average expressiveness and readability for php of its era.