News for hackers. Stuff that matters.
Re:Elixir for Humans Who Know Python by Cyph0n on Saturday February 25, 2023 @01:23PM (#34939060)
I'm not really familiar with Phoenix, but skimming through the section linked below, it seems to cover what you're looking for? Basically, you use a tool to generate your model + migration code and then run the migrations.

https://hexdocs.pm/phoenix/ecto.html#using-the-schema-and-mi...

As for the comparison to Django, I don't really expect any web framework to have docs at that level. They are simply huge and have been around for quite a while.

Re:Elixir for Humans Who Know Python by winrid on Saturday February 25, 2023 @02:05PM (#34939417)
Yes, I skimmed through that and was surprised to see it be compared to Django. It's different.

Django is for building CRUD apps quickly. That's it. It's not for the long haul of super complicated apps, which many projects don't ever reach before they fail/get abandoned.

Re:Elixir for Humans Who Know Python by Daishiman on Sunday February 26, 2023 @09:22AM (#34945747)
99% of line-of-business apps are CRUD. There's nothing special about "super complicated apps" that isn't brought in by the Python ecosystem. Where exactly do you think Django fails in that regard?
Re:Elixir for Humans Who Know Python by winrid on Sunday February 26, 2023 @02:00PM (#34948269)
I love Django. I just think Python without types makes things hard at scale.
Re:Elixir for Humans Who Know Python by Daishiman on Monday February 27, 2023 @09:27AM (#34956768)
MyPy and friends have made this much, much better. In the long term it's probably not ideal for very large systems in many applications.
Re:Elixir for Humans Who Know Python by winrid on Tuesday February 28, 2023 @12:09PM (#34971799)
I've been using it with an IDE and it's quite nice. I'll probably be using Django for a lot of future projects.
Re:Elixir for Humans Who Know Python by Frog0fWar on Sunday February 26, 2023 @05:18PM (#34950172)
I agree that there are better options for long-term maintenance of large projects, but let's not act like Youtube or Instagram don't exist - both of which used Django to some (high at the beginning) degree.