News for hackers. Stuff that matters.
Re:Elixir for Humans Who Know Python by arrowsmith on Saturday February 25, 2023 @01:31PM (#34939144)
Phoenix doesn't have the concept of a "model". The functionality of what Rails (and I guess also Django? Idk) calls a "model" is split between a few different places: schemas, changesets, queries, the repo.

It felt weird at first, coming from Rails, but after getting used to it I don't miss "models" at all. ActiveRecord models in Rails are a vastly overloaded concept anyway and pretty much always degenerate fast into an ungodly mess as your app grows. I prefer Phoenix's approach.

Re:Elixir for Humans Who Know Python by winrid on Saturday February 25, 2023 @02:06PM (#34939431)
Yeah, for a big complicated system, I don't think defining everything in models is great. I don't do that, and it's also not how fastcomments is built.

But for simple stuff it's amazingly productive!