Re:The same app 4 times: PHP vs Python vs Ruby vs Clojure
by antihero on Monday March 25, 2013 @08:00PM
(#5440511)
Well, that's one of the few "advantages" of PHP.
Though PHP allows this to happen easily, it's a fairly terrible idea for production code - the shortest isn't always the best.
In reality you'd use a macroframework like Symfony or a micro like Ham https://github.com/radiosilence/Ham
Re:The same app 4 times: PHP vs Python vs Ruby vs Clojure
by cpress on Monday March 25, 2013 @08:32PM
(#5440643)
There is a microwork made from Symfony components called Silex: http://silex.sensiolabs.org.
Edit: I mis-read; reworded for clarity.
PHP cheats a bit to be the shortest, since it just looks up files to execute and renders stdout as the result, removing the need for routing.