Created
December 2, 2011 20:40
-
-
Save wam/1424749 to your computer and use it in GitHub Desktop.
Satire: Facebook's "Secret Sauce" in PHP Pseudocode?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Get everything everyone shared this year from our offshore data center | |
$all_links = Echelon::query('shared_links')->where('year = ?', 2011)->find_all(); | |
// Add a dash of secret sauce | |
$politically_correct_links = array_filter($all_links, 'secret_sauce'); | |
function secret_sauce($link) | |
{ | |
// Per zuck, keep fox out of the list | |
if ($link['domain'] == 'foxnews.com') { | |
return false; | |
} else { | |
return true; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please simply conditional to
return $link['domain'] == 'foxnews.com';