4 ms·
Definitely, it's been a source of annoyance for me with Phoenix. While the default request flow is fairly simple (router -> controller -> view), they have the c
by ad404b8a372f2b9 4y ago
Definitely, it's been a source of annoyance for me with Phoenix. While the default request flow is fairly simple (router -> controller -> view), they have the concept of "plugs" which are functions applied conditionally at different steps and which can be defined in a whole bunch of places far away from the functions meant to handle a specific page. It makes the whole request lifecycle very confusing and when an error arises you find yourself in a completely different part of the callstack than you expected, calling some magic function you didn't even know existed.