News for hackers. Stuff that matters.
Re:Mux – A lightweight, fast HTTP request router for Go by peclink on Tuesday December 06, 2016 @12:46AM (#13112541)
> But quite frequently I want to answer this question with just the source code.

Exactly. And that is also a benefit if routes are fetched dynamically from database, e.g. for content application, so your database is really content repository without too many levels of abstraction.

As for source code, it's kinda silly to split your app to fixed «controllers» and «models», you should split it functionally for simple reuse. Most modern PHP frameworks are so unflexible that way (laravel is just terrible IMO).

There are no comments on this comment yet.