Hacker News new | ask | show | jobs
by misuba 6253 days ago
What I don't get is why web frameworks put routing into the code at all. Most of them don't do anything interesting with it (Rails is the most prominent exception), and if you're just gonna map a few things with regexes, well... what's so difficult about mod_rewrite?
1 comments

Portability between servers and reusable apps are the first examples that came to my mind. A reusable app would need an extra installation step and need to duplicate its routes in more than one syntax for different webservers.