While I agree with your point, I think you chose a poor example. In the last 10 years, URIs have changed to no longer refer to a path on the filesystem (yes yes, there are still a ton of old sites that do). A lot of new web frameworks start by regexing the daylights out of your URI and then running a function based on the match.