4 ms·
Can you provide an example please of these obscured things in Phoenix? Don't want to sound harsh, just learning Phoenix as well.
by q1t 9y ago
Can you provide an example please of these obscured things in Phoenix? Don't want to sound harsh, just learning Phoenix as well.
- s_kilk 9y agoThey probably mean all the `using` macros, which can obscure where functions are coming from, and make it hard to get a grip on which functions are available in a given scope. Having said that, Phoenix is nowhere near as 'magical' as rails.
- Veen 9y agoAgreed. I found it confusing at first but once I understood that these things are laid out in web.ex it was quite easy to follow the chain to the original functions. I was also confused by where the helper functions came from, but when I realized that some of them are generated automatically from route definitions at complile time, things became clearer.