2
Every framework in MVC architecture or even other architectures I come across, I find it almost mandatory to configure routes. However, it’s not clear to me what kind of problem that solves, and I can’t find literature that helps much. The common is to find content focused on a particular tool or framework, treating routes as something obvious. Django, Angular, Laravel, MVC 5 . NET, virtually every material that addresses the subject treats as if it were something you already learned in college. I have an intuitive hunch, just like I did on GET requests in PHP. He used a lot to call includes, using PHP to generate templates with includes (avoiding PHP Injection of course), reusing much of the code, and even rewriting new paths with a few lines of code. Can routes be considered analogous to these primitive web application techniques? I believe the question "What kind of problems routes solve ?" well direct and not broad, I hope you will interpret so, and that it can help many developers. Consider editing this text as contextualization, not a long question. Thank you all!
Oi Sérgio I think this would be a doubt more for the stack exchange because it is something more technical than technical
– Marcos Brinner
Routes are found in virtually all existing frameworks, and there is extensive knowledge of what they do. What I don’t see in discussion is what kind of problems in practice they solve. There’s practically nothing theoretical about it. The question is very empirical indeed, which by definition is not theoretical. In short it would be: Why not simply point out addresses with variables or constants, because each functionality practically has to have a route? That sounds very technical!
– Sérgio Lima
@Marcosbrinner pauses to momentarily ignore the fact that many theoretical questions here on the site have positive and huge reception from the community
– Daniel
The routes are in virtually all frameworks, various architectures, we use daily, and yet you consider this a theoretical issue?
– Sérgio Lima
I imagine myself at a fair asking the price of a fruit and someone saying that this is too theoretical a question.
– Sérgio Lima