8/24/2023 0 Comments Elixir phoenix liveview![]() ![]() Learning EctoĮcto is the Phoenix ORM (Technically it’s not an ORM, but it certainly covers much of the featureset of an ORM. You should read the whole thing but start with the request life-cycle guide and then go back and read all the others. The official guide is quite well written. Like the entire Elixir ecosystem, this means there is a learning curve, but great velocity gains to be had once you get used to it. Paying attention to directory structure and naming conventions is much more important than in other web app frameworks. You can strongly feel the Rails influence. Phoenix is an opinionated framework with quite a bit of magic to it. meta-programming (macros) Learning Phoenix I do recommend skimming thru every page of the getting started guide just to get a sense of what you don’t know yet: hexdocs: centralized documentation website.percent-curly braces and arrow notation: %.If you are used to arrays, some operations are O(n) such as length or append. They use the “:” prefix like :identifier or :key or :date.More like user-defined symbols or tokens. If you are familiar, it’s not a big leap. Learning Elixirįor experience programmers, the syntax is heavily Ruby inspired. It’s not particularly steep, but it is longer than a language like go but not as long as required by the Haskell or OCaml ecosystems. There is a learning curve to the ecosytem. After getting a hang of Phoenix, jump into LiveView. You can and should learn Elixir and Phoenix at the same time. In order to make web apps with Elixir, here’s a short primer on learning the language and major frameworks:įirst, don’t just learn Elixir.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |