Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Twitto: A web framework in a tweet.
$c=new ReflectionClass('co');$m=$c->getMethod($_GET['m']);if($m && $m->isPublic()){$i = $c->newInstance();$m->invoke($i);}
<?php // "Framework" $c=new ReflectionClass('co');$m=$c->getMethod($_GET['m']);if($m && $m->isPublic()){$i = $c->newInstance();$m->invoke($i);} // Controller class co { public function index() { echo "index!"; } public function test() { echo "yes, it's test."; } } ?>
example.com/?m=index example.com/?m=test
Nice. You should call it TwitOO.
example.com/?m=index example.com/?m=test