Comment by sergiotapia

Comment by sergiotapia a day ago

4 replies

Rails has more baked in for the typical crud app. Example:

Try to create a way for people to upload documents like images and PDFs and documents. Okay easy enough on both platforms and I want you to generate a preview for each of those files so that people can easily find those files. Now I want you to add pagination. Now I want you to add column sorting so that people can sort by file size or by name or by upload date. Finally I want you to add a search field. Going by the way all of this stuff needs to live in the URL so that you can bookmark all the different you know choices you've made.

The stuff is pretty trivial and rails but in elixir you would have to bake it all yourself very boring code that doesn't really matter. This is why I chose to build my startups admin dashboard in rails despite our main production API being an elixir.

ricketycricket 11 hours ago

LiveView uploads are baked in, previews and all. Everything else you list is included in the Flop library, if you want something off the shelf. In rails you are still including Kaminari or whatever other gems for all this too, so this is really no different.

sanswork 13 hours ago

Check out ash-hq.org they are basically building the data side framework to handle all those things and it works great with Phoenix.

  • sergiotapia 12 hours ago

    Extremely risky tbh I would have an extremely hard time if I go off path or need to hire someone. It would be almost negligence to choose it unfortunately

    • sanswork 12 hours ago

      It's the opposite since it standardises everything as oppose to roll your own.

      If you need to hire someone you'd need to train them on your system no matter what, with a framework you can use their documentation to explain where things are and how they work.