Y
Hacker News
new
|
ask
|
show
|
jobs
by
dan15
4491 days ago
Anything in particular about this code that makes you cry and cringe?
1 comments
nodesocket
4491 days ago
Lot's, but perhaps most obvious, not using a routing engine or framework, simply spaghetti code case statement:
public static function _Route_getStats($path) { switch($path) { case 'version': ...
link