|
|
|
|
|
by dnautics
249 days ago
|
|
> The idea that Phoenix is also mostly macros does not hold in practice no, but the Framework does push you into using them. A good example is the `use MyAppWeb` pattern. That's a macro that nests other macros. the good news is that you can pretty much excise that and everything works fine, and LLMs have no problem even! (i think they slightly prefer it) a few cognitive pain points with phoenix macros: plug: (love it dearly) but a bit confusing that it creates a conn variable out of whole cloth. a minor complaint. worth it, otherwise. phoenix.router: is a plug but isnt quite a plug. anyways that's it! the rest is ~fabulous. i think to find a framework where you have two minor complaints is a blessing. remember how activerecord automagically pluralized tables for you? |
|
Conn is just a pipeline of functions, the initial Conn struct is created at request time and passed through to each function in the pipeline.